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

ResponseAddress.java 958B

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