#include <websocketpp/config/asio_no_tls_client.hpp>
#include <websocketpp/client.hpp>
#include <iostream>
Go to the source code of this file.
Typedefs | |
typedef websocketpp::client< websocketpp::config::asio_client > | 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[]) |
Definition at line 33 of file echo_client.cpp.
Definition at line 40 of file echo_client.cpp.
void on_message | ( | client * | c, |
websocketpp::connection_hdl | hdl, | ||
message_ptr | msg | ||
) |
Definition at line 44 of file echo_client.cpp.
References websocketpp::endpoint< connection, config >::send().
Referenced by main().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 58 of file echo_client.cpp.
References websocketpp::log::alevel::all, websocketpp::endpoint< connection, config >::clear_access_channels(), websocketpp::client< config >::connect(), websocketpp::log::alevel::frame_payload, websocketpp::client< config >::get_connection(), websocketpp::transport::asio::endpoint< config >::init_asio(), on_message(), websocketpp::transport::asio::endpoint< config >::run(), websocketpp::endpoint< connection, config >::set_access_channels(), websocketpp::endpoint< connection, config >::set_message_handler(), and websocketpp::exception::what().