CNode::ReceiveMsgBytes

Receive bytes from the buffer and deserialize them into messages.

Synopsis

Declared in <net.h>

[[requires_capability(0x7f2e2b2a81f8), requires_capability(0x7f2e2ad13948), requires_capability(0x7f2e23031fa8), requires_capability(0x7f2e26edeb78), requires_capability(0x7f2e231581f8), requires_capability(0x7f2e36827a78), requires_capability(0x7f2e228b0198), requires_capability(0x7f2e431dcf58), requires_capability(0x7f2e1b9fc228), requires_capability(0x7f2e2b9cfdc8), requires_capability(0x7f2e403d24c8)]]
bool
ReceiveMsgBytes(
    std::span<uint8_t const> msg_bytes,
    bool& complete);

Return Value

True if the peer should stay connected, False if the peer should be disconnected from.

Parameters

NameDescription
msg_bytes [in]The raw data
complete [out]Set True if at least one message has been deserialized and is ready to be processed