org.xlattice.protocol.stun
Class XorMappedAddress

java.lang.Object
  extended by org.xlattice.protocol.TLV
      extended by org.xlattice.protocol.TLV16
          extended by org.xlattice.protocol.stun.StunAttr
              extended by org.xlattice.protocol.stun.AddrAttr
                  extended by org.xlattice.protocol.stun.XorMappedAddress
All Implemented Interfaces:
StunConst

public class XorMappedAddress
extends AddrAttr

XXX The fact that this is going to be difficult to handle means that we need to replace the Inet4Address with a byte[4].

Author:
Jim Dixon

Field Summary
 
Fields inherited from class org.xlattice.protocol.TLV
fieldSize, type, value
 
Fields inherited from interface org.xlattice.protocol.stun.StunConst
BINDING_ERROR_RESPONSE, BINDING_REQUEST, BINDING_RESPONSE, CHANGE_IP, CHANGE_PORT, CHANGE_REQUEST, CHANGED_ADDRESS, ERROR_CODE, HEADER_LENGTH, MAPPED_ADDRESS, MESSAGE_INTEGRITY, MSG_ID_LENGTH, PASSWORD, REFLECTED_FROM, RESPONSE_ADDRESS, SECONDARY_ADDRESS, SERVER_NAME, SHARED_SECRET_ERROR_RESPONSE, SHARED_SECRET_REQUEST, SHARED_SECRET_RESPONSE, SOURCE_ADDRESS, STUN_SERVER_PORT, UNKNOWN_ATTRIBUTES, USERNAME, XOR_MAPPED_ADDRESS, XOR_ONLY
 
Constructor Summary
XorMappedAddress(java.net.Inet4Address addr, int port)
           
 
Method Summary
 
Methods inherited from class org.xlattice.protocol.stun.AddrAttr
decodeValue, getAddress, getPort, toString
 
Methods inherited from class org.xlattice.protocol.stun.StunAttr
decode
 
Methods inherited from class org.xlattice.protocol.TLV
decode, encode, length
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XorMappedAddress

public XorMappedAddress(java.net.Inet4Address addr,
                        int port)