Go to the source code of this file.
Typedefs | |
typedef websocketpp::server< websocketpp::config::asio > | server_plain |
typedef websocketpp::server< websocketpp::config::asio_tls > | server_tls |
typedef websocketpp::lib::shared_ptr< boost::asio::ssl::context > | context_ptr |
Functions | |
template<typename EndpointType > | |
void | on_message (EndpointType *s, websocketpp::connection_hdl hdl, typename EndpointType::message_ptr msg) |
std::string | get_password () |
context_ptr | on_tls_init (websocketpp::connection_hdl hdl) |
int | main () |
Definition at line 8 of file echo_server_both.cpp.
Definition at line 9 of file echo_server_both.cpp.
typedef websocketpp::lib::shared_ptr<boost::asio::ssl::context> context_ptr |
Definition at line 17 of file echo_server_both.cpp.
void on_message | ( | EndpointType * | s, |
websocketpp::connection_hdl | hdl, | ||
typename EndpointType::message_ptr | msg | ||
) |
Definition at line 22 of file echo_server_both.cpp.
std::string get_password | ( | ) |
Definition at line 38 of file echo_server_both.cpp.
Referenced by on_tls_init().
context_ptr on_tls_init | ( | websocketpp::connection_hdl | hdl | ) |
Definition at line 42 of file echo_server_both.cpp.
References get_password().
Referenced by main().
int main | ( | ) |
Definition at line 60 of file echo_server_both.cpp.
References websocketpp::transport::asio::endpoint< config >::init_asio(), websocketpp::transport::asio::endpoint< config >::listen(), on_tls_init(), websocketpp::endpoint< connection, config >::set_message_handler(), websocketpp::transport::asio::tls_socket::endpoint::set_tls_init_handler(), and websocketpp::server< config >::start_accept().