WebSocket++  0.8.3-dev
C++ websocket client/server library
Tutorials

These tutorials are works in progress, some are more complete than others.

websocketpp::server::start_accept
void start_accept(lib::error_code &ec)
Starts the server's async connection acceptance loop (exception free)
Definition: server_endpoint.hpp:121
websocket_endpoint
Definition: step3.cpp:42
websocketpp::log::alevel::frame_payload
static level const frame_payload
One line per frame, includes the full message payload (warning: chatty)
Definition: levels.hpp:129
utility_server
Definition: step1.cpp:42
websocketpp::client< websocketpp::config::asio_client >
websocketpp::close::status::normal
static value const normal
Definition: close.hpp:76
websocketpp::close::status::value
uint16_t value
The type of a close code value.
Definition: close.hpp:49
connection_metadata
Definition: step4.cpp:45
websocketpp::endpoint::get_con_from_hdl
connection_ptr get_con_from_hdl(connection_hdl hdl, lib::error_code &ec)
Retrieves a connection_ptr from a connection_hdl (exception free)
Definition: endpoint.hpp:643
websocketpp::endpoint< connection< websocketpp::config::asio_client >, websocketpp::config::asio_client >::message_ptr
connection_type::message_ptr message_ptr
Type of message pointers that this endpoint uses.
Definition: endpoint.hpp:70
websocketpp::log::alevel::all
static level const all
Special aggregate value representing "all levels".
Definition: levels.hpp:152
websocketpp::connection_hdl
lib::weak_ptr< void > connection_hdl
A handle to uniquely identify a connection.
Definition: connection_hdl.hpp:48
websocketpp::utility::to_hex
std::string to_hex(std::string const &input)
Convert std::string to ascii printed string of hex digits.
Definition: utilities_impl.hpp:43
websocketpp::client< websocketpp::config::asio_client >::connection_ptr
connection_type::ptr connection_ptr
Type of a shared pointer to the connections this server will create.
Definition: client_endpoint.hpp:60
websocketpp::endpoint::clear_error_channels
void clear_error_channels(log::level channels)
Clear Error logging channels.
Definition: endpoint.hpp:253
websocketpp::endpoint::set_access_channels
void set_access_channels(log::level channels)
Set Access logging channel.
Definition: endpoint.hpp:220
websocketpp::close::status::get_string
std::string get_string(value code)
Return a human readable interpretation of a WebSocket close code.
Definition: close.hpp:232
websocketpp::client::connect
connection_ptr connect(connection_ptr con)
Begin the connection process for the given connection.
Definition: client_endpoint.hpp:139
websocketpp::server< websocketpp::config::asio >
websocketpp::endpoint::set_error_channels
void set_error_channels(log::level channels)
Set Error logging channel.
Definition: endpoint.hpp:242
websocketpp::close::status::going_away
static value const going_away
Definition: close.hpp:80
websocketpp::endpoint::clear_access_channels
void clear_access_channels(log::level channels)
Clear Access logging channels.
Definition: endpoint.hpp:231
websocketpp::client::get_connection
connection_ptr get_connection(uri_ptr location, lib::error_code &ec)
Get a new connection.
Definition: client_endpoint.hpp:89
websocketpp::log::elevel::all
static level const all
Special aggregate value representing "all levels".
Definition: levels.hpp:80