interface RLPxService
(source)
Service allowing connections to remote peers over RLPx connections.
abstract fun broadcast(subProtocolIdentifier: SubProtocolIdentifier, messageType: Int, message: Bytes): Unit
Sends a wire message to all connected peers. |
|
abstract fun connectTo(peerPublicKey: PublicKey, peerAddress: InetSocketAddress): AsyncCompletion
Connects to a remote peer |
|
abstract fun disconnect(connectionId: String, reason: DisconnectReason): Unit
Sends a message to the peer explaining that we are about to disconnect. |
|
abstract fun repository(): WireConnectionRepository
Gets the wire connections repository associated with this service. |
|
abstract fun send(subProtocolIdentifier: SubProtocolIdentifier, messageType: Int, connectionId: String, message: Bytes): Unit
Sends a wire message to a peer. |
|
abstract fun start(): AsyncCompletion
Starts the service. |
|
abstract fun stop(): AsyncCompletion
Stops the service. |
class VertxRLPxService : RLPxService
Implementation of RLPx service using Vert.x. |