rlpx / org.apache.tuweni.rlpx.vertx / VertxRLPxService

VertxRLPxService

class VertxRLPxService : RLPxService (source)

Implementation of RLPx service using Vert.x.

Constructors

<init>

VertxRLPxService(vertx: Vertx, loggerProvider: LoggerProvider, listenPort: Int, networkInterface: String, advertisedPort: Int, identityKeyPair: KeyPair, subProtocols: MutableList<SubProtocol>, clientId: String)
VertxRLPxService(vertx: Vertx, loggerProvider: LoggerProvider, listenPort: Int, networkInterface: String, advertisedPort: Int, identityKeyPair: KeyPair, subProtocols: MutableList<SubProtocol>, clientId: String, repository: WireConnectionRepository)

Default constructor.

Functions

actualPort

fun actualPort(): Int

advertisedPort

fun advertisedPort(): Int

broadcast

fun broadcast(subProtocolIdentifier: SubProtocolIdentifier, messageType: Int, message: Bytes): Unit

connectTo

fun connectTo(peerPublicKey: PublicKey, peerAddress: InetSocketAddress): AsyncCompletion

disconnect

fun disconnect(connectionId: String, disconnectReason: DisconnectReason): Unit

repository

fun repository(): WireConnectionRepository

send

fun send(subProtocolIdentifier: SubProtocolIdentifier, messageType: Int, connectionId: String, message: Bytes): Unit

start

fun start(): AsyncCompletion

stop

fun stop(): AsyncCompletion