Unsupported library that attempts to punch holes through NAT
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ReflectedFrom.java 960B

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