Class BaseIoConnector

    • Constructor Detail

      • BaseIoConnector

        protected BaseIoConnector()
    • Method Detail

      • connect

        public ConnectFuture connect​(java.net.SocketAddress address,
                                     IoHandler handler)
        Description copied from interface: IoConnector
        Connects to the specified address. If communication starts successfully, events are fired to the specified handler.
        Specified by:
        connect in interface IoConnector
        Returns:
        ConnectFuture that will tell the result of the connection attempt
      • connect

        public ConnectFuture connect​(java.net.SocketAddress address,
                                     java.net.SocketAddress localAddress,
                                     IoHandler handler)
        Description copied from interface: IoConnector
        Connects to the specified address. If communication starts successfully, events are fired to the specified handler.
        Specified by:
        connect in interface IoConnector
        localAddress - the local address the channel is bound to
        Returns:
        ConnectFuture that will tell the result of the connection attempt