public class TurnDatagramPacketFilter extends StunDatagramPacketFilter
stunServer
Constructor and Description |
---|
TurnDatagramPacketFilter(TransportAddress turnServer)
Initializes a new TurnDatagramPacketFilter which will accept
DatagramPackets which represent TURN messages and which are part
of the communication with a specific TURN server.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accept(DatagramPacket p)
Determines whether a specific DatagramPacket represents a TURN
message which is part of the communication with the TURN server
associated with this instance.
|
protected boolean |
acceptMethod(char method)
Determines whether this DatagramPacketFilter accepts a
DatagramPacket which represents a STUN message with a specific
STUN method.
|
equals, hashCode, isStunPacket
public TurnDatagramPacketFilter(TransportAddress turnServer)
turnServer
- the TransportAddress of the TURN server
DatagramPackets representing TURN messages from and to which
will be accepted by the new instancepublic boolean accept(DatagramPacket p)
accept
in interface DatagramPacketFilter
accept
in class StunDatagramPacketFilter
p
- the DatagramPacket to be checked whether it represents
a TURN message which is part of the communicator with the TURN server
associated with this instanceprotected boolean acceptMethod(char method)
acceptMethod
in class StunDatagramPacketFilter
method
- the STUN method of a STUN message represented by a
DatagramPacket to be checked whether it is accepted by this
DatagramPacketFilterStunDatagramPacketFilter.acceptMethod(char)
Copyright © 2018. All rights reserved.