Package 

Class DTLSDatagramFilter

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      static boolean isDTLS(DatagramPacket p) Determines whether p looks like a DTLS packet.
      static boolean isDTLS(Array<byte> data, int off, int len) Determines whether the buffer represented by data, off and len looks like a DTLS packet.
      boolean accept(DatagramPacket p) Determines whether a specific DatagramPacket is accepted by this filter i.e.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • isDTLS

         static boolean isDTLS(DatagramPacket p)

        Determines whether p looks like a DTLS packet.

        Parameters:
        p - the DatagramPacket to check.
      • isDTLS

         static boolean isDTLS(Array<byte> data, int off, int len)

        Determines whether the buffer represented by data, off and len looks 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.