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

Set the next message to send, returning whether it was accepted&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;requires&lowbar;capability(0x7f2e2b0f23f8), requires&lowbar;capability(0x7f2e2aa3bc68), requires&lowbar;capability(0x7f2e22e7c0e8), requires&lowbar;capability(0x7f2e26d28cb8), requires&lowbar;capability(0x7f2e20d4a708), requires&lowbar;capability(0x7f2e2af17638), requires&lowbar;capability(0x7f2e4317d8b8), requires&lowbar;capability(0x7f2e21e50de8), requires&lowbar;capability(0x7f2e1b876438), requires&lowbar;capability(0x7f2e35f9dca8), requires&lowbar;capability(0x7f2e4396cff8)&rsqb;&rsqb;
virtual
bool
SetMessageToSend(xref:CSerializedNetMsg.adoc[CSerializedNetMsg]& msg) noexcept override;
----

== Return Value

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

== Parameters

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


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