org.littleshoot.stun.stack.message.attributes.ice
Class IceControlledAttribute
java.lang.Object
org.littleshoot.stun.stack.message.attributes.AbstractStunAttribute
org.littleshoot.stun.stack.message.attributes.ice.IceControlledAttribute
- All Implemented Interfaces:
- StunAttribute
public final class IceControlledAttribute
- extends AbstractStunAttribute
The ICE-CONTROLLED attribute is present in a Binding Request, and
indicates that the client believes it is currently in the controlled
role. The content of the attribute is a 64 bit unsigned integer in
network byte ordering, which contains a random number used for tie-
breaking of role conflicts.
IceControlledAttribute
public IceControlledAttribute(byte[] tieBreaker)
- Creates a new ICE-CONTROLLED attribute.
- Parameters:
tieBreaker - The tie-breaker for control conflicts.
getTieBreaker
public byte[] getTieBreaker()
- Accessor for the random 64 bit positive integer that serves as the
tie-breaker.
- Returns:
- The 64 bit positive integer for this attribute.
accept
public void accept(StunAttributeVisitor visitor)
- Description copied from interface:
StunAttribute
- Allows attributes to accept visitors.
- Parameters:
visitor - The visitor to accept.
toString
public String toString()
- Overrides:
toString in class AbstractStunAttribute
Copyright © 2013 LittleShoot. All Rights Reserved.