tuweni / 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 - Verb!: the type of message

attributes - String!: the attributes of message

peer - Peer!: the target of the message

hash - Bytes!: the hash of the message

payload - Bytes?: the bytes to send