Unsupported library that attempts to punch holes through NAT
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

MessageHeaderInterface.java 822B

12345678910111213141516171819202122
  1. /*
  2. * This file is part of JSTUN.
  3. *
  4. * Copyright (c) 2005 Thomas King <king@t-king.de> - All rights
  5. * reserved.
  6. *
  7. * This software is licensed under either the GNU Public License (GPL),
  8. * or the Apache 2.0 license. Copies of both license agreements are
  9. * included in this distribution.
  10. */
  11. package de.javawi.jstun.header;
  12. public interface MessageHeaderInterface {
  13. public enum MessageHeaderType { BindingRequest, BindingResponse, BindingErrorResponse, SharedSecretRequest, SharedSecretResponse, SharedSecretErrorResponse };
  14. final static int BINDINGREQUEST = 0x0001;
  15. final static int BINDINGRESPONSE = 0x0101;
  16. final static int BINDINGERRORRESPONSE = 0x0111;
  17. final static int SHAREDSECRETREQUEST = 0x0002;
  18. final static int SHAREDSECRETRESPONSE = 0x0102;
  19. final static int SHAREDSECRETERRORRESPONSE = 0x0112;
  20. }