Unsupported library that attempts to punch holes through NAT
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

MessageAttributeInterface.java 1.1KB

12345678910111213141516171819202122232425262728
  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.attribute;
  12. public interface MessageAttributeInterface {
  13. public enum MessageAttributeType { MappedAddress, ResponseAddress, ChangeRequest, SourceAddress, ChangedAddress, Username, Password, MessageIntegrity, ErrorCode, UnknownAttribute, ReflectedFrom, Dummy };
  14. final static int MAPPEDADDRESS = 0x0001;
  15. final static int RESPONSEADDRESS = 0x0002;
  16. final static int CHANGEREQUEST = 0x0003;
  17. final static int SOURCEADDRESS = 0x0004;
  18. final static int CHANGEDADDRESS = 0x0005;
  19. final static int USERNAME = 0x0006;
  20. final static int PASSWORD = 0x0007;
  21. final static int MESSAGEINTEGRITY = 0x0008;
  22. final static int ERRORCODE = 0x0009;
  23. final static int UNKNOWNATTRIBUTE = 0x000a;
  24. final static int REFLECTEDFROM = 0x000b;
  25. final static int DUMMY = 0x0000;
  26. }