org.littleshoot.stun.stack.message.attributes.ice
Class IceControllingAttribute

java.lang.Object
  extended by org.littleshoot.stun.stack.message.attributes.AbstractStunAttribute
      extended by org.littleshoot.stun.stack.message.attributes.ice.IceControllingAttribute
All Implemented Interfaces:
StunAttribute

public final class IceControllingAttribute
extends AbstractStunAttribute

The ICE-CONTROLLING attribute is present in a Binding Request, and indicates that the client believes it is currently in the controlling 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.


Constructor Summary
IceControllingAttribute(byte[] tieBreaker)
          Creates a new ICE-CONTROLLING attribute.
 
Method Summary
 void accept(StunAttributeVisitor visitor)
          Allows attributes to accept visitors.
 byte[] getTieBreaker()
          Accessor for the random 64 bit positive integer that serves as the tie-breaker.
 String toString()
           
 
Methods inherited from class org.littleshoot.stun.stack.message.attributes.AbstractStunAttribute
getAttributeType, getBodyLength, getTotalLength
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IceControllingAttribute

public IceControllingAttribute(byte[] tieBreaker)
Creates a new ICE-CONTROLLING attribute.

Parameters:
tieBreaker - The tie-breaker for control conflicts.
Method Detail

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.