NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
API Documentation
telemetry_client Class Reference

The telemetry client connects to a WebSocket server and sends a message every second containing an integer count. More...

Public Types

typedef websocketpp::client< websocketpp::config::asio_clientclient
 
typedef websocketpp::lib::lock_guard< websocketpp::lib::mutex > scoped_lock
 

Public Member Functions

 telemetry_client ()
 
void run (const std::string &uri)
 
void on_open (websocketpp::connection_hdl)
 
void on_close (websocketpp::connection_hdl)
 
void on_fail (websocketpp::connection_hdl)
 
void telemetry_loop ()
 

Detailed Description

The telemetry client connects to a WebSocket server and sends a message every second containing an integer count.

This example can be used as the basis for programs where a client connects and pushes data for logging, stress/load testing, etc.

Definition at line 26 of file telemetry_client.cpp.

Member Typedef Documentation

◆ client

◆ scoped_lock

typedef websocketpp::lib::lock_guard<websocketpp::lib::mutex> telemetry_client::scoped_lock

Definition at line 29 of file telemetry_client.cpp.

Constructor & Destructor Documentation

◆ telemetry_client()

Member Function Documentation

◆ run()

◆ on_open()

void telemetry_client::on_open ( websocketpp::connection_hdl  )
inline

◆ on_close()

void telemetry_client::on_close ( websocketpp::connection_hdl  )
inline

◆ on_fail()

void telemetry_client::on_fail ( websocketpp::connection_hdl  )
inline

◆ telemetry_loop()


The documentation for this class was generated from the following file: