-
- All Implemented Interfaces:
-
org.ice4j.socket.DatagramPacketFilter
public class DTLSDatagramFilter implements DatagramPacketFilter
A
DatagramPacketFilterwhich accepts DTLS packets only.
-
-
Method Summary
Modifier and Type Method Description static booleanisDTLS(DatagramPacket p)Determines whether plooks like a DTLS packet.static booleanisDTLS(Array<byte> data, int off, int len)Determines whether the buffer represented by data,offandlenlooks like a DTLS packet.booleanaccept(DatagramPacket p)Determines whether a specific DatagramPacket is accepted by this filter i.e. -
-
Method Detail
-
isDTLS
static boolean isDTLS(DatagramPacket p)
Determines whether
plooks like a DTLS packet.- Parameters:
p- theDatagramPacketto check.
-
isDTLS
static boolean isDTLS(Array<byte> data, int off, int len)
Determines whether the buffer represented by
data,offandlenlooks like a DTLS packet.- Parameters:
data- the array that contains the data.off- the offset.len- the length.
-
accept
boolean accept(DatagramPacket p)
Determines whether a specific DatagramPacket is accepted by this filter i.e. whether the caller should include the specified DatagramPacket in a selection based on this filter.
-
-
-
-