tuweni / org.apache.tuweni.rlpx / RLPxConnection / write

write

fun write(message: RLPxMessage!): Bytes! (source)

Frames a message for sending to an RLPx peer, encrypting it and calculating the appropriate MACs.

Parameters

message - RLPxMessage!: The message to frame.

Return
Bytes!: The framed message, as byte buffer.