org.littleshoot.stun.stack.message.attributes
Interface StunAddressAttribute

All Superinterfaces:
StunAttribute
All Known Implementing Classes:
AbstractStunAddressAttribute, MappedAddressAttribute, RelayAddressAttribute, RemoteAddressAttribute

public interface StunAddressAttribute
extends StunAttribute

Interface for STUN address attributes.


Method Summary
 int getAddressFamily()
          Accessor for the family of the address.
 InetSocketAddress getInetSocketAddress()
          Accessor for the address and port in the address.
 
Methods inherited from interface org.littleshoot.stun.stack.message.attributes.StunAttribute
accept, getAttributeType, getBodyLength, getTotalLength
 

Method Detail

getInetSocketAddress

InetSocketAddress getInetSocketAddress()
Accessor for the address and port in the address.

Returns:
The address and port.

getAddressFamily

int getAddressFamily()
Accessor for the family of the address.

Returns:
The family of the address, either IPv4 or IPv6.


Copyright © 2013 LittleShoot. All Rights Reserved.