tuweni / org.apache.tuweni.rlpx / RLPxService / broadcast

broadcast

abstract fun broadcast(subProtocolIdentifier: SubProtocolIdentifier, messageType: Int, message: Bytes): Unit (source)

Sends a wire message to all connected peers.

Parameters

subProtocolIdentifier - the identifier of the subprotocol this message is part ofs

messageType - the type of the message according to the subprotocol

message - the message to broadcast.