Go to the source code of this file.
Typedefs | |
typedef websocketpp::server< websocketpp::config::asio > | server |
Functions | |
void | custom_on_msg (server &s, connection_hdl hdl, server::message_ptr msg) |
void | default_on_msg (server &s, connection_hdl hdl, server::message_ptr msg) |
int | main () |
Definition at line 6 of file handler_switch.cpp.
void custom_on_msg | ( | server & | s, |
connection_hdl | hdl, | ||
server::message_ptr | msg | ||
) |
Definition at line 14 of file handler_switch.cpp.
Referenced by default_on_msg().
void default_on_msg | ( | server & | s, |
connection_hdl | hdl, | ||
server::message_ptr | msg | ||
) |
Definition at line 18 of file handler_switch.cpp.
References custom_on_msg(), and websocketpp::endpoint< connection, config >::get_con_from_hdl().
Referenced by main().
int main | ( | ) |
Definition at line 32 of file handler_switch.cpp.
References default_on_msg(), websocketpp::transport::asio::endpoint< config >::init_asio(), websocketpp::transport::asio::endpoint< config >::listen(), websocketpp::transport::asio::endpoint< config >::run(), websocketpp::endpoint< connection, config >::set_message_handler(), and websocketpp::server< config >::start_accept().