NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: 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

◆ client

◆ message_ptr

Function Documentation

◆ on_open()

void on_open ( client c,
websocketpp::connection_hdl  hdl 
)

◆ on_message()

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

◆ main()

Variable Documentation

◆ sip_client

client sip_client

Definition at line 21 of file sip_client.cpp.

◆ received

bool received

Definition at line 24 of file sip_client.cpp.

Referenced by main(), on_message(), and on_open().