ProtonClient.connect
- void connect(string host, int port, Handler!ProtonConnection connectionHandler)
- void connect(string host, int port, string username, string password, Handler!ProtonConnection connectionHandler)
- void connect(ProtonClientOptions options, string host, int port, Handler!ProtonConnection connectionHandler)
- void connect(ProtonClientOptions options, string host, int port, string username, string password, Handler!ProtonConnection connectionHandler)
Connect to the given host and port, with credentials (if required by server peer).
@param options the options to apply @param host the host to connect to @param port the port to connect to @param username the user name to use in any SASL negotiation that requires it @param password the password to use in any SASL negotiation that requires it @param connectionHandler handler that will process the result, giving either the (unopened) ProtonConnection or failure cause.