WebSocket++
0.8.3-dev
C++ websocket client/server library
|
These tutorials are works in progress, some are more complete than others.
void start_accept(lib::error_code &ec)
Starts the server's async connection acceptance loop (exception free)
static level const frame_payload
One line per frame, includes the full message payload (warning: chatty)
static value const normal
uint16_t value
The type of a close code value.
connection_ptr get_con_from_hdl(connection_hdl hdl, lib::error_code &ec)
Retrieves a connection_ptr from a connection_hdl (exception free)
connection_type::message_ptr message_ptr
Type of message pointers that this endpoint uses.
static level const all
Special aggregate value representing "all levels".
lib::weak_ptr< void > connection_hdl
A handle to uniquely identify a connection.
std::string to_hex(std::string const &input)
Convert std::string to ascii printed string of hex digits.
connection_type::ptr connection_ptr
Type of a shared pointer to the connections this server will create.
void clear_error_channels(log::level channels)
Clear Error logging channels.
void set_access_channels(log::level channels)
Set Access logging channel.
std::string get_string(value code)
Return a human readable interpretation of a WebSocket close code.
connection_ptr connect(connection_ptr con)
Begin the connection process for the given connection.
void set_error_channels(log::level channels)
Set Error logging channel.
static value const going_away
void clear_access_channels(log::level channels)
Clear Access logging channels.
connection_ptr get_connection(uri_ptr location, lib::error_code &ec)
Get a new connection.
static level const all
Special aggregate value representing "all levels".