scuttlebutt-handshake / 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 - Int: the port of the remote host

host - String!: the host string of the remote host

remotePublicKey - PublicKey!: the public key of the remote host

handlerFactory - ClientHandlerFactory<T>!: the factory of handlers for connections

Return
AsyncResult<T>!: a handle to a new stream handler with the remote host