org.littleshoot.stun.stack.message.turn
Class SendIndication
java.lang.Object
org.littleshoot.stun.stack.message.AbstractStunMessage
org.littleshoot.stun.stack.message.turn.AbstractStunDataMessage
org.littleshoot.stun.stack.message.turn.SendIndication
- All Implemented Interfaces:
- StunMessage, VisitableStunMessage
public final class SendIndication
- extends AbstractStunDataMessage
TURN send message for encapsulating data to be sent to remote hosts.
SendIndication
public SendIndication(org.apache.commons.id.uuid.UUID transactionId,
Map<StunAttributeType,StunAttribute> attributes)
- Creates a new Send Indication message with data from the network.
- Parameters:
transactionId - The ID of the transaction.attributes - The message attributes.
SendIndication
public SendIndication(InetSocketAddress remoteAddress,
byte[] data)
- Creates a new Send Indication message.
- Parameters:
remoteAddress - The address to send the data to.data - The data.
accept
public <T> T accept(StunMessageVisitor<T> visitor)
- Description copied from interface:
VisitableStunMessage
- Accepts the specified visitor class.
- Type Parameters:
T - The type the visitor will return.- Parameters:
visitor - The visitor to accept.
- Returns:
- The return value of the visitor.
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
Copyright © 2013 LittleShoot. All Rights Reserved.