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