CNode::PollMessage

Poll the next message from the processing queue of this connection.

Synopsis

Declared in <net.h>

[[requires_capability(0x7f950f15d9b8), requires_capability(0x7f950f1eccc8), requires_capability(0x7f950aff03a8), requires_capability(0x7f95030332a8), requires_capability(0x7f95236c1d58), requires_capability(0x7f952527b4c8), requires_capability(0x7f950ec80b18), requires_capability(0x7f950dc34348), requires_capability(0x7f951df8fee8), requires_capability(0x7f9524e49988), requires_capability(0x7f950f723c28)]]
std::optional<std::pair<CNetMessage, bool>>
PollMessage();

Description

Returns std::nullopt if the processing queue is empty, or a pair consisting of the message and a bool that indicates if the processing queue has more entries.

Return Value

the next message and whether more remain, or std::nullopt if the queue is empty.