Interface IoConnector

    • Method Detail

      • connect

        ConnectFuture connect​(java.net.SocketAddress address,
                              IoHandler handler)
        Connects to the specified address. If communication starts successfully, events are fired to the specified handler.
        Returns:
        ConnectFuture that will tell the result of the connection attempt
      • connect

        ConnectFuture connect​(java.net.SocketAddress address,
                              IoHandler handler,
                              IoServiceConfig config)
        Connects to the specified address. If communication starts successfully, events are fired to the specified handler.
        Parameters:
        config - the configuration
        Returns:
        ConnectFuture that will tell the result of the connection attempt
      • connect

        ConnectFuture connect​(java.net.SocketAddress address,
                              java.net.SocketAddress localAddress,
                              IoHandler handler)
        Connects to the specified address. If communication starts successfully, events are fired to the specified handler.
        Parameters:
        localAddress - the local address the channel is bound to
        Returns:
        ConnectFuture that will tell the result of the connection attempt
      • connect

        ConnectFuture connect​(java.net.SocketAddress address,
                              java.net.SocketAddress localAddress,
                              IoHandler handler,
                              IoServiceConfig config)
        Connects to the specified address. If communication starts successfully, events are fired to the specified handler.
        Parameters:
        config - the configuration
        Returns:
        ConnectFuture that will tell the result of the connection attempt