rlpx / org.apache.tuweni.rlpx.wire / SubProtocolHandler

SubProtocolHandler

interface SubProtocolHandler (source)

Handler managing messages and new connections of peers related for a given subprotocol.

Functions

handle

abstract fun handle(connectionId: String, messageType: Int, message: Bytes): AsyncCompletion

Handle an incoming wire protocol message

handleNewPeerConnection

abstract fun handleNewPeerConnection(connectionId: String): AsyncCompletion

Handle a new peer connection

stop

abstract fun stop(): AsyncCompletion

Stops a subprotocol operations.