...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Send a websocket ping control frame.
void ping( ping_data const& payload);
This function is used to send a ping frame, which usually elicits an automatic pong control frame response from the peer. The call blocks until one of the following conditions is true:
The algorithm, known as a composed operation, is
implemented in terms of calls to the next layer's write_some
function.
Name |
Description |
---|---|
|
The payload of the ping message, which may be empty. |
Type |
Thrown On |
---|---|
|
Thrown on failure. |