org.littleshoot.stun.stack.message.turn
Class DataIndication
java.lang.Object
org.littleshoot.stun.stack.message.AbstractStunMessage
org.littleshoot.stun.stack.message.turn.AbstractStunDataMessage
org.littleshoot.stun.stack.message.turn.DataIndication
- All Implemented Interfaces:
- StunMessage, VisitableStunMessage
public final class DataIndication
- extends AbstractStunDataMessage
TURN message that encapsulates data coming from a remote host for sending
on to the TURN client.
DataIndication
public DataIndication(org.apache.commons.id.uuid.UUID transactionId,
Map<StunAttributeType,StunAttribute> attributes)
- Creates a new Data Indication message.
- Parameters:
transactionId - The transaction ID.attributes - The message attributes.
DataIndication
public DataIndication(InetSocketAddress remoteAddress,
byte[] data)
- Creates a new Data Indication message.
- Parameters:
remoteAddress - The remote address the data arrived from.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.
Copyright © 2013 LittleShoot. All Rights Reserved.