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

SecureScuttlebuttVertxClient

class SecureScuttlebuttVertxClient (source)

Secure Scuttlebutt client using Vert.x to manage persistent TCP connections.

Constructors

<init>

Default constructor.

SecureScuttlebuttVertxClient(vertx: Vertx!, keyPair: KeyPair!, networkIdentifier: Bytes32!)

Functions

connectTo

Connects the client to a remote host.

fun <T : ClientHandler!> connectTo(port: Int, host: String!, remotePublicKey: PublicKey?, invite: Invite?, handlerFactory: ClientHandlerFactory<T>!): AsyncResult<T>!

stop

Stops the server.

fun stop(): AsyncCompletion!