NetClient.connect

Open a connection to a server at the specific {@code port} and {@code host}. <p> {@code host} can be a valid host name or IP address. The connect is done asynchronously and on success, a {@link Connection} instance is supplied via the {@code connectHandler} instance

@param port the port @param host the host @param serverName the SNI server name @return a reference to this, so the API can be used fluently

  1. void connect(string host, int port)
  2. void connect(string host, int port, string serverName)
    interface NetClient
    void
    connect
    (
    string host
    ,
    int port
    ,
    string serverName
    )

Meta