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

Receive bytes from the buffer and deserialize them into messages&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;requires&lowbar;capability(0x7f950f15dbb8), requires&lowbar;capability(0x7f950f1ecec8), requires&lowbar;capability(0x7f950aff05a8), requires&lowbar;capability(0x7f95030334a8), requires&lowbar;capability(0x7f95236c1f58), requires&lowbar;capability(0x7f952527b6c8), requires&lowbar;capability(0x7f950ec80d18), requires&lowbar;capability(0x7f950dc34548), requires&lowbar;capability(0x7f951df900e8), requires&lowbar;capability(0x7f9524e49b88), requires&lowbar;capability(0x7f950f723e28)&rsqb;&rsqb;
bool
ReceiveMsgBytes(
    std::span&lt;uint8&lowbar;t const&gt; msg&lowbar;bytes,
    bool& complete);
----

== Return Value

True if the peer should stay connected, False if the peer should be disconnected from&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *msg&lowbar;bytes* [in]
| The raw data
| *complete* [out]
| Set True if at least one message has been deserialized and is ready to be processed
|===


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