Class UDPConnection


  • public class UDPConnection
    extends java.lang.Object
    • Field Detail

      • id

        private int id
      • read_buffers

        private final java.util.List read_buffers
      • read_buffer_sem

        private final AESemaphore read_buffer_sem
      • connected

        private volatile boolean connected
    • Method Detail

      • getID

        protected int getID()
      • setID

        protected void setID​(int _id)
      • isIncoming

        public boolean isIncoming()
      • setSecret

        protected void setSecret​(byte[] session_secret)
      • receive

        protected void receive​(java.nio.ByteBuffer data)
                        throws java.io.IOException
        Throws:
        java.io.IOException
      • sent

        protected void sent()
      • canRead

        protected boolean canRead()
      • canWrite

        protected boolean canWrite()
      • write

        protected int write​(java.nio.ByteBuffer[] buffers,
                            int offset,
                            int length)
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • read

        protected int read​(java.nio.ByteBuffer buffer)
                    throws java.io.IOException
        Throws:
        java.io.IOException
      • close

        protected void close​(java.lang.String reason)
      • failed

        protected void failed​(java.lang.Throwable reason)
      • closeSupport

        protected void closeSupport​(java.lang.String reason)
      • failedSupport

        protected void failedSupport​(java.lang.Throwable reason)
      • isConnected

        protected boolean isConnected()
      • poll

        protected void poll()