[#CNode-PollMessage] = xref:CNode.adoc[CNode]::PollMessage :relfileprefix: ../ :mrdocs: Poll the next message from the processing queue of this connection. == Synopsis Declared in `<net.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[requires_capability(0x7f2e2b2a7ff8), requires_capability(0x7f2e2ad13748), requires_capability(0x7f2e23031da8), requires_capability(0x7f2e26ede978), requires_capability(0x7f2e23157ff8), requires_capability(0x7f2e36827878), requires_capability(0x7f2e228aff98), requires_capability(0x7f2e431dcd58), requires_capability(0x7f2e1b9fc028), requires_capability(0x7f2e2b9cfbc8), requires_capability(0x7f2e403d22c8)]] 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. [.small]#Created with https://www.mrdocs.com[MrDocs]#