NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.3: 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 15 of file telemetry_client.cpp.

Member Typedef Documentation

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

Definition at line 18 of file telemetry_client.cpp.

Constructor & Destructor Documentation

Member Function Documentation


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