#include <condition_variable>
#include <websocketpp/config/asio_no_tls_client.hpp>
#include <websocketpp/client.hpp>
#include <iostream>
#include <boost/thread/thread.hpp>
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_open (client *c, websocketpp::connection_hdl hdl) |
void | on_message (client *c, websocketpp::connection_hdl hdl, message_ptr msg) |
int | main (int argc, char *argv[]) |
Variables | |
client | sip_client |
bool | received |
Definition at line 11 of file sip_client.cpp.
Definition at line 18 of file sip_client.cpp.
void on_open | ( | client * | c, |
websocketpp::connection_hdl | hdl | ||
) |
Definition at line 26 of file sip_client.cpp.
References received, websocketpp::endpoint< connection, config >::send(), and websocketpp::frame::opcode::text.
Referenced by main().
void on_message | ( | client * | c, |
websocketpp::connection_hdl | hdl, | ||
message_ptr | msg | ||
) |
Definition at line 36 of file sip_client.cpp.
References websocketpp::endpoint< connection, config >::get_con_from_hdl(), and received.
Referenced by main().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 44 of file sip_client.cpp.
References websocketpp::log::elevel::all, websocketpp::log::alevel::all, websocketpp::endpoint< connection, config >::clear_access_channels(), websocketpp::endpoint< connection, config >::clear_error_channels(), websocketpp::client< config >::connect(), websocketpp::client< config >::get_connection(), websocketpp::transport::asio::endpoint< config >::init_asio(), websocketpp::lib::asio::milliseconds(), on_message(), on_open(), received, websocketpp::transport::asio::endpoint< config >::run(), websocketpp::endpoint< connection, config >::set_message_handler(), websocketpp::endpoint< connection, config >::set_open_handler(), and websocketpp::exception::what().
client sip_client |
Definition at line 21 of file sip_client.cpp.
bool received |
Definition at line 24 of file sip_client.cpp.
Referenced by main(), on_message(), and on_open().