Class UDPTransport

    • Constructor Summary

      Constructors 
      Constructor Description
      UDPTransport​(java.net.DatagramSocket socket, int mtu)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      int getReceiveLimit()  
      int getSendLimit()  
      int receive​(byte[] buf, int off, int len, int waitMillis)  
      void send​(byte[] buf, int off, int len)  
      • Methods inherited from class java.lang.Object

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

      • socket

        protected final java.net.DatagramSocket socket
      • receiveLimit

        protected final int receiveLimit
      • sendLimit

        protected final int sendLimit
    • Constructor Detail

      • UDPTransport

        public UDPTransport​(java.net.DatagramSocket socket,
                            int mtu)
                     throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • receive

        public int receive​(byte[] buf,
                           int off,
                           int len,
                           int waitMillis)
                    throws java.io.IOException
        Specified by:
        receive in interface DatagramReceiver
        Throws:
        java.io.IOException
      • send

        public void send​(byte[] buf,
                         int off,
                         int len)
                  throws java.io.IOException
        Specified by:
        send in interface DatagramSender
        Throws:
        java.io.IOException
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface TlsCloseable
        Throws:
        java.io.IOException