Class BaseIoAcceptor

    • Constructor Detail

      • BaseIoAcceptor

        protected BaseIoAcceptor()
    • Method Detail

      • bind

        public void bind​(java.net.SocketAddress address,
                         IoHandler handler)
                  throws java.io.IOException
        Description copied from interface: IoAcceptor
        Binds to the specified address and handles incoming connections with the specified handler.
        Specified by:
        bind in interface IoAcceptor
        Throws:
        java.io.IOException - if failed to bind
      • newSession

        public IoSession newSession​(java.net.SocketAddress remoteAddress,
                                    java.net.SocketAddress localAddress)
        Description copied from interface: IoAcceptor
        (Optional) Returns an IoSession that is bound to the specified localAddress and remoteAddress which reuses the localAddress that is already bound by IoAcceptor via IoAcceptor.bind(SocketAddress, IoHandler).

        This operation is optional. Please throw UnsupportedOperationException if the transport type doesn't support this operation. This operation is usually implemented for connectionless transport types.

        Specified by:
        newSession in interface IoAcceptor