[#CNode-PollMessage]
= xref:CNode.adoc[CNode]::PollMessage
:relfileprefix: ../
:mrdocs:

Poll the next message from the processing queue of this connection&period;

== Synopsis

Declared in `&lt;net&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;requires&lowbar;capability(0x7f2e2b2a7ff8), requires&lowbar;capability(0x7f2e2ad13748), requires&lowbar;capability(0x7f2e23031da8), requires&lowbar;capability(0x7f2e26ede978), requires&lowbar;capability(0x7f2e23157ff8), requires&lowbar;capability(0x7f2e36827878), requires&lowbar;capability(0x7f2e228aff98), requires&lowbar;capability(0x7f2e431dcd58), requires&lowbar;capability(0x7f2e1b9fc028), requires&lowbar;capability(0x7f2e2b9cfbc8), requires&lowbar;capability(0x7f2e403d22c8)&rsqb;&rsqb;
std::optional&lt;std::pair&lt;CNetMessage, bool&gt;&gt;
PollMessage();
----

== Description

Returns std&colon;&colon;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&period;

== Return Value

the next message and whether more remain, or std&colon;&colon;nullopt if the queue is empty&period;


[.small]#Created with https://www.mrdocs.com[MrDocs]#
