#include <websocketpp/config/asio_no_tls_client.hpp>
#include <websocketpp/client.hpp>
#include <websocketpp/extensions/permessage_deflate/enabled.hpp>
#include <iostream>
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::client< deflate_config > | client |
typedef websocketpp::config::asio_client::message_type::ptr | message_ptr |
Functions | |
void | on_message (client *c, websocketpp::connection_hdl hdl, message_ptr msg) |
int | main (int argc, char *argv[]) |
Variables | |
int | case_count = 0 |
typedef websocketpp::client<deflate_config> client |
Definition at line 72 of file testee_client.cpp.
Definition at line 79 of file testee_client.cpp.
void on_message | ( | client * | c, |
websocketpp::connection_hdl | hdl, | ||
message_ptr | msg | ||
) |
Definition at line 83 of file testee_client.cpp.
References case_count, websocketpp::endpoint< connection, config >::get_con_from_hdl(), and websocketpp::endpoint< connection, config >::send().
Referenced by main().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 95 of file testee_client.cpp.
References websocketpp::log::elevel::all, websocketpp::log::alevel::all, case_count, websocketpp::endpoint< connection, config >::clear_access_channels(), websocketpp::endpoint< connection, config >::clear_error_channels(), websocketpp::client< config >::connect(), websocketpp::client< config >::get_connection(), on_message(), websocketpp::endpoint< connection, config >::set_message_handler(), websocketpp::user_agent, and websocketpp::exception::what().
int case_count = 0 |
Definition at line 81 of file testee_client.cpp.
Referenced by main(), and on_message().