[#CNetMessage-2constructor-0e]
= xref:CNetMessage.adoc[CNetMessage]::CNetMessage
:relfileprefix: ../
:mrdocs:

Constructors

== Synopses

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

Deleted copy constructor&semi; messages are move&hyphen;only&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:CNetMessage/2constructor-0a7.adoc[CNetMessage](xref:CNetMessage.adoc[CNetMessage] const& other) = delete;
----

[.small]#xref:CNetMessage/2constructor-0a7.adoc[_» more&period;&period;&period;_]#

Move&hyphen;construct a message&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
xref:CNetMessage/2constructor-0ac.adoc[CNetMessage](xref:CNetMessage.adoc[CNetMessage]&& other) = default;
----

[.small]#xref:CNetMessage/2constructor-0ac.adoc[_» more&period;&period;&period;_]#

Construct a message that takes ownership of the received data stream&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:CNetMessage/2constructor-06.adoc[CNetMessage](xref:DataStream.adoc[DataStream]&& recv&lowbar;in);
----

[.small]#xref:CNetMessage/2constructor-06.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *other*
| the message that would be copied from&period;
| *recv&lowbar;in*
| the received data stream to take ownership of&period;
|===


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