Unsupported library that attempts to punch holes through NAT
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

ChangedAddress.java 953B

123456789101112131415161718192021222324252627282930
  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. import java.util.logging.Logger;
  13. public class ChangedAddress extends MappedResponseChangedSourceAddressReflectedFrom {
  14. private static Logger logger = Logger.getLogger("de.javawi.stun.attribute.ChangedAddress");
  15. public ChangedAddress() {
  16. super(MessageAttribute.MessageAttributeType.ChangedAddress);
  17. }
  18. public static MessageAttribute parse(byte[] data) throws MessageAttributeParsingException {
  19. ChangedAddress ca = new ChangedAddress();
  20. MappedResponseChangedSourceAddressReflectedFrom.parse(ca, data);
  21. logger.finer("Message Attribute: Changed Address parsed: " + ca.toString() + ".");
  22. return ca;
  23. }
  24. }