tuweni / org.apache.tuweni.scuttlebutt.handshake.vertx / SecureScuttlebuttVertxClient / connectTo

connectTo

fun <T : ClientHandler> connectTo(port: Int, host: String, remotePublicKey: PublicKey, handlerFactory: ClientHandlerFactory<T>): AsyncResult<T> (source)

Connects the client to a remote host.

Parameters

port - the port of the remote host

host - the host string of the remote host

remotePublicKey - the public key of the remote host

handlerFactory - the factory of handlers for connections

Return
a handle to a new stream handler with the remote host