interface SubProtocolHandler
(source)
Handler managing messages and new connections of peers related for a given subprotocol.
abstract fun handle(connectionId: String, messageType: Int, message: Bytes): AsyncCompletion
Handle an incoming wire protocol message |
|
abstract fun handleNewPeerConnection(connectionId: String): AsyncCompletion
Handle a new peer connection |
|
abstract fun stop(): AsyncCompletion
Stops a subprotocol operations. |