Public Member Functions | |
broadcast_server () | |
void | on_open (connection_hdl hdl) |
void | on_close (connection_hdl hdl) |
void | on_message (connection_hdl hdl, server::message_ptr msg) |
void | run (uint16_t port) |
broadcast_server () | |
void | run (uint16_t port) |
void | on_open (connection_hdl hdl) |
void | on_close (connection_hdl hdl) |
void | on_message (connection_hdl hdl, server::message_ptr msg) |
void | process_messages () |
broadcast_server () | |
void | on_open (connection_hdl hdl) |
void | on_close (connection_hdl hdl) |
void | on_message (connection_hdl hdl, server::message_ptr msg) |
void | run (uint16_t port) |
Definition at line 13 of file simple_broadcast_server.cpp.
|
inline |
Definition at line 15 of file simple_broadcast_server.cpp.
References websocketpp::transport::asio::endpoint< config >::init_asio(), on_close(), on_message(), on_open(), websocketpp::endpoint< connection, config >::set_close_handler(), websocketpp::endpoint< connection, config >::set_message_handler(), and websocketpp::endpoint< connection, config >::set_open_handler().
|
inline |
Definition at line 49 of file broadcast_server.cpp.
References on_close(), on_message(), and on_open().
|
inline |
Definition at line 14 of file simple_broadcast_server.cpp.
References websocketpp::transport::asio::endpoint< config >::init_asio(), on_close(), on_message(), on_open(), websocketpp::endpoint< connection, config >::set_close_handler(), websocketpp::endpoint< connection, config >::set_message_handler(), and websocketpp::endpoint< connection, config >::set_open_handler().
|
inline |
Definition at line 23 of file simple_broadcast_server.cpp.
Referenced by broadcast_server().
|
inline |
Definition at line 27 of file simple_broadcast_server.cpp.
Referenced by broadcast_server().
|
inline |
Definition at line 31 of file simple_broadcast_server.cpp.
References websocketpp::endpoint< connection, config >::send().
Referenced by broadcast_server().
|
inline |
Definition at line 37 of file simple_broadcast_server.cpp.
References websocketpp::transport::asio::endpoint< config >::listen(), websocketpp::transport::asio::endpoint< config >::run(), and websocketpp::server< config >::start_accept().
Referenced by main().
|
inline |
Definition at line 59 of file broadcast_server.cpp.
|
inline |
Definition at line 74 of file broadcast_server.cpp.
References action::action(), and SUBSCRIBE.
|
inline |
Definition at line 83 of file broadcast_server.cpp.
References action::action(), and UNSUBSCRIBE.
|
inline |
Definition at line 92 of file broadcast_server.cpp.
References action::action(), and MESSAGE.
|
inline |
Definition at line 102 of file broadcast_server.cpp.
References action::hdl, MESSAGE, action::msg, SUBSCRIBE, action::type, and UNSUBSCRIBE.
Referenced by main().
|
inline |
Definition at line 22 of file simple_broadcast_server.cpp.
|
inline |
Definition at line 26 of file simple_broadcast_server.cpp.
|
inline |
Definition at line 30 of file simple_broadcast_server.cpp.
References websocketpp::endpoint< connection, config >::send().
|
inline |
Definition at line 36 of file simple_broadcast_server.cpp.
References websocketpp::transport::asio::endpoint< config >::listen(), websocketpp::transport::asio::endpoint< config >::run(), and websocketpp::server< config >::start_accept().