scuttlebutt-client-lib / org.apache.tuweni.scuttlebutt.lib / ScuttlebuttClientFactory / fromNet

fromNet

static fun fromNet(mapper: ObjectMapper, host: String, port: Int, keyPair: KeyPair): AsyncResult<ScuttlebuttClient> (source)

Creates a scuttllebutt client by connecting with the given host, port and keypair

Parameters

mapper - The ObjectMapper for serializing the content of published scuttlebutt messages

host - The host to connect to as a scuttlebutt client

port - The port to connect on

keyPair - The keys to use for the secret handshake

Return
the scuttlebutt client