NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.3: NDN, CCN, CCNx, content centric networks
API Documentation
sip_client.cpp File Reference
#include <condition_variable>
#include <websocketpp/config/asio_no_tls_client.hpp>
#include <websocketpp/client.hpp>
#include <iostream>
#include <boost/thread/thread.hpp>
Include dependency graph for sip_client.cpp:

Go to the source code of this file.

Typedefs

typedef websocketpp::client< websocketpp::config::asio_clientclient
 
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
 

Typedef Documentation

Function Documentation

void on_open ( client c,
websocketpp::connection_hdl  hdl 
)
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().

Variable Documentation

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().