A specific kind of Datagram, especially for sending across or receiving from a network. It’s different only in that it knows which Connection and/or
NetAddressit is to be sent to or was received from.
NetDatagram(void const *data, std::size_t size)¶
NetDatagram(NetDatagram const ©)¶
Constructs an empty datagram.
Constructs a datagram from an existing block of data.
NetAddress const &
Retrieves the host from which the datagram was read, or to which it is scheduled to be sent.
Retrieves the socket from which the datagram was read, or to which it is scheduled to be written.
set_address(NetAddress const &address)¶
Specifies the host to which the datagram should be sent.