class SecureScuttlebuttVertxClient
(source)
Secure Scuttlebutt client using Vert.x to manage persistent TCP connections.
SecureScuttlebuttVertxClient(loggerProvider: LoggerProvider, vertx: Vertx, keyPair: KeyPair, networkIdentifier: Bytes32)
Default constructor. |
fun <T : ClientHandler> connectTo(port: Int, host: String, remotePublicKey: PublicKey, handlerFactory: ClientHandlerFactory<T>): AsyncResult<T>
Connects the client to a remote host. |
|
fun stop(): AsyncCompletion
Stops the server. |