Payload of a Pong message, 4 bytes, sent by the server in answer to a Ping.
More...
#include <protocol/PongMessage.hpp>
|
|
std::uint32_t | timestamp = 0 |
| | Value copied from the Ping.
|
| |
|
|
static constexpr std::size_t | SIZE = 4 |
| | Encoded size of the payload, in bytes.
|
| |
Payload of a Pong message, 4 bytes, sent by the server in answer to a Ping.
| Offset | Size | Field | Description |
| 0 | 4 | timestamp | Value copied from the matching Ping. |
◆ serialize()
Writes the payload in network byte order.
- Parameters
-
| writer | Destination buffer. |
- Returns
- True on success, false if the buffer is full.
◆ deserialize()
Reads the payload from a buffer.
- Parameters
-
- Returns
- True on success, false if fewer than 4 bytes remain.