#include <websocketpp/config/asio_no_tls.hpp>
#include <websocketpp/server.hpp>
#include <websocketpp/extensions/permessage_deflate/enabled.hpp>
#include <iostream>
Go to the source code of this file.
Classes | |
struct | testee_config |
struct | testee_config::transport_config |
struct | testee_config::permessage_deflate_config |
permessage_compress extension More... | |
Typedefs | |
typedef websocketpp::server< testee_config > | server |
typedef server::message_ptr | message_ptr |
Functions | |
void | on_message (server *s, websocketpp::connection_hdl hdl, message_ptr msg) |
void | on_socket_init (websocketpp::connection_hdl, boost::asio::ip::tcp::socket &s) |
int | main (int argc, char *argv[]) |
typedef websocketpp::server<testee_config> server |
Definition at line 76 of file testee_server.cpp.
typedef server::message_ptr message_ptr |
Definition at line 83 of file testee_server.cpp.
void on_message | ( | server * | s, |
websocketpp::connection_hdl | hdl, | ||
message_ptr | msg | ||
) |
Definition at line 86 of file testee_server.cpp.
References websocketpp::endpoint< connection, config >::send().
Referenced by main().
void on_socket_init | ( | websocketpp::connection_hdl | , |
boost::asio::ip::tcp::socket & | s | ||
) |
Definition at line 90 of file testee_server.cpp.
Referenced by main().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 95 of file testee_server.cpp.
References websocketpp::log::alevel::all, websocketpp::endpoint< connection, config >::clear_access_channels(), websocketpp::endpoint< connection, config >::clear_error_channels(), on_message(), on_socket_init(), websocketpp::endpoint< connection, config >::set_message_handler(), websocketpp::server< config >::start_accept(), and websocketpp::exception::what().