#include <iostream>
#include <websocketpp/config/debug_asio_no_tls.hpp>
#include <websocketpp/server.hpp>
#include <websocketpp/extensions/permessage_deflate/enabled.hpp>
Go to the source code of this file.
Classes | |
struct | deflate_config |
This example is presently used as a scratch space. More... | |
struct | deflate_config::transport_config |
struct | deflate_config::permessage_deflate_config |
permessage_compress extension More... | |
Typedefs | |
typedef websocketpp::server< deflate_config > | server |
typedef server::message_ptr | message_ptr |
Functions | |
void | on_message (server *s, websocketpp::connection_hdl hdl, message_ptr msg) |
int | main (int argc, char *argv[]) |
typedef websocketpp::server<deflate_config> server |
Definition at line 51 of file scratch_server.cpp.
typedef server::message_ptr message_ptr |
Definition at line 53 of file scratch_server.cpp.
void on_message | ( | server * | s, |
websocketpp::connection_hdl | hdl, | ||
message_ptr | msg | ||
) |
Definition at line 56 of file scratch_server.cpp.
References websocketpp::endpoint< connection, config >::send(), and websocketpp::exception::what().
Referenced by main().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 69 of file scratch_server.cpp.
References websocketpp::log::elevel::all, websocketpp::log::alevel::all, websocketpp::log::elevel::none, websocketpp::log::alevel::none, on_message(), websocketpp::endpoint< connection, config >::set_access_channels(), websocketpp::endpoint< connection, config >::set_error_channels(), websocketpp::endpoint< connection, config >::set_message_handler(), websocketpp::server< config >::start_accept(), and websocketpp::exception::what().