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>

SecureScuttlebuttVertxClient(loggerProvider: LoggerProvider, vertx: Vertx, keyPair: KeyPair, networkIdentifier: Bytes32)

Default constructor.

Functions

connectTo

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

Connects the client to a remote host.

stop

fun stop(): AsyncCompletion

Stops the server.