plumtree / org.apache.tuweni.plumtree / MessageSender / sendMessage

sendMessage

abstract fun sendMessage(verb: Verb, attributes: String, peer: Peer, hash: Bytes, @Nullable payload: Bytes?): Unit (source)

Sends bytes to a peer.

Parameters

verb - the type of message

attributes - the attributes of message

peer - the target of the message

hash - the hash of the message

payload - the bytes to send