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

handle

abstract fun handle(connection: WireConnection!, messageType: Int, message: Bytes!): AsyncCompletion! (source)

Handle an incoming wire protocol message

Parameters

connection - WireConnection!: the peer connection

messageType - Int: the type of the message

message - Bytes!: the message to be handled

Return
AsyncCompletion!: a handle tracking the completion of the handling of the message.