tuweni / org.apache.tuweni.rlpx / RLPxService / send

send

abstract fun send(subProtocolIdentifier: SubProtocolIdentifier!, messageType: Int, connection: WireConnection!, message: Bytes!): Unit (source)

Sends a wire message to a peer.

Parameters

subProtocolIdentifier - SubProtocolIdentifier!: the identifier of the subprotocol this message is part of

messageType - Int: the type of the message according to the subprotocol

connection - WireConnection!: the connection.

message - Bytes!: the message, addressed to a connection.