Go to the source code of this file.
Typedefs | |
typedef websocketpp::server< websocketpp::config::asio > | server |
typedef server::message_ptr | message_ptr |
Functions | |
void | on_message (server *s, websocketpp::connection_hdl hdl, message_ptr msg) |
int | main () |
Definition at line 7 of file echo_server.cpp.
typedef server::message_ptr message_ptr |
Definition at line 14 of file echo_server.cpp.
void on_message | ( | server * | s, |
websocketpp::connection_hdl | hdl, | ||
message_ptr | msg | ||
) |
Definition at line 17 of file echo_server.cpp.
References websocketpp::endpoint< connection, config >::send(), and websocketpp::transport::asio::endpoint< config >::stop_listening().
Referenced by main().
int main | ( | ) |
Definition at line 37 of file echo_server.cpp.
References websocketpp::log::alevel::all, websocketpp::endpoint< connection, config >::clear_access_channels(), websocketpp::log::alevel::frame_payload, websocketpp::transport::asio::endpoint< config >::init_asio(), websocketpp::transport::asio::endpoint< config >::listen(), on_message(), websocketpp::transport::asio::endpoint< config >::run(), websocketpp::endpoint< connection, config >::set_access_channels(), websocketpp::endpoint< connection, config >::set_message_handler(), websocketpp::server< config >::start_accept(), and websocketpp::exception::what().