class VertxRLPxService : RLPxService
(source)
Implementation of RLPx service using Vert.x.
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. |
fun actualPort(): Int |
|
fun advertisedPort(): Int |
|
fun broadcast(subProtocolIdentifier: SubProtocolIdentifier, messageType: Int, message: Bytes): Unit |
|
fun connectTo(peerPublicKey: PublicKey, peerAddress: InetSocketAddress): AsyncCompletion |
|
fun disconnect(connectionId: String, disconnectReason: DisconnectReason): Unit |
|
fun repository(): WireConnectionRepository |
|
fun send(subProtocolIdentifier: SubProtocolIdentifier, messageType: Int, connectionId: String, message: Bytes): Unit |
|
fun start(): AsyncCompletion |
|
fun stop(): AsyncCompletion |