Constructors

Synopses

Declared in <net.h>

Deleted copy constructor; messages are move‐only.

CNetMessage(CNetMessage const& other) = delete;

Move‐construct a message.

constexpr
CNetMessage(CNetMessage&& other) = default;

Construct a message that takes ownership of the received data stream.

explicit
CNetMessage(DataStream&& recv_in);

Parameters

Name

Description

other

the message that would be copied from.

recv_in

the received data stream to take ownership of.

Created with MrDocs