[#Transport-SetMessageToSend]
= xref:Transport.adoc[Transport]::SetMessageToSend
:relfileprefix: ../
:mrdocs:

Set the next message to send&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
virtual
bool
SetMessageToSend(xref:CSerializedNetMsg.adoc[CSerializedNetMsg]& msg) noexcept = 0;
----

== Description

If no message can currently be set (perhaps because the previous one is not yet done being sent), returns false, and msg will be unmodified&period; Otherwise msg is enqueued (and possibly moved&hyphen;from) and true is returned&period;

== Return Value

true if the message was accepted, false if none could be set right now&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *msg* [inout]
| the message to enqueue&semi; may be moved&hyphen;from on success&period;
|===


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