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

Public Types

typedef websocketpp::lib::shared_ptr< connection_metadataptr
 
typedef websocketpp::lib::shared_ptr< connection_metadataptr
 
typedef websocketpp::lib::shared_ptr< connection_metadataptr
 
typedef websocketpp::lib::shared_ptr< connection_metadataptr
 
typedef websocketpp::lib::shared_ptr< connection_metadataptr
 

Public Member Functions

 connection_metadata (int id, websocketpp::connection_hdl hdl, std::string uri)
 
void on_open (client *c, websocketpp::connection_hdl hdl)
 
void on_fail (client *c, websocketpp::connection_hdl hdl)
 
void on_close (client *c, websocketpp::connection_hdl hdl)
 
websocketpp::connection_hdl get_hdl () const
 
int get_id () const
 
std::string get_status () const
 
 connection_metadata (int id, websocketpp::connection_hdl hdl, std::string uri)
 
void on_open (client *c, websocketpp::connection_hdl hdl)
 
void on_fail (client *c, websocketpp::connection_hdl hdl)
 
void on_close (client *c, websocketpp::connection_hdl hdl)
 
void on_message (websocketpp::connection_hdl, client::message_ptr msg)
 
websocketpp::connection_hdl get_hdl () const
 
int get_id () const
 
std::string get_status () const
 
void record_sent_message (std::string message)
 
 connection_metadata (int id, websocketpp::connection_hdl hdl, std::string uri)
 
void on_open (client *c, websocketpp::connection_hdl hdl)
 
void on_fail (client *c, websocketpp::connection_hdl hdl)
 
 connection_metadata (int id, websocketpp::connection_hdl hdl, std::string uri)
 
void on_open (client *c, websocketpp::connection_hdl hdl)
 
void on_fail (client *c, websocketpp::connection_hdl hdl)
 
void on_close (client *c, websocketpp::connection_hdl hdl)
 
websocketpp::connection_hdl get_hdl () const
 
int get_id () const
 
std::string get_status () const
 
 connection_metadata (int id, websocketpp::connection_hdl hdl, std::string uri)
 
void on_open (client *c, websocketpp::connection_hdl hdl)
 
void on_fail (client *c, websocketpp::connection_hdl hdl)
 
void on_close (client *c, websocketpp::connection_hdl hdl)
 
void on_message (websocketpp::connection_hdl, client::message_ptr msg)
 
websocketpp::connection_hdl get_hdl () const
 
int get_id () const
 
std::string get_status () const
 
void record_sent_message (std::string message)
 

Friends

std::ostream & operator<< (std::ostream &out, connection_metadata const &data)
 
std::ostream & operator<< (std::ostream &out, connection_metadata const &data)
 
std::ostream & operator<< (std::ostream &out, connection_metadata const &data)
 
std::ostream & operator<< (std::ostream &out, connection_metadata const &data)
 
std::ostream & operator<< (std::ostream &out, connection_metadata const &data)
 

Detailed Description

Definition at line 45 of file scratch_client.cpp.

Member Typedef Documentation

◆ ptr [1/5]

typedef websocketpp::lib::shared_ptr<connection_metadata> connection_metadata::ptr

Definition at line 47 of file scratch_client.cpp.

◆ ptr [2/5]

typedef websocketpp::lib::shared_ptr<connection_metadata> connection_metadata::ptr

Definition at line 47 of file utility_client.cpp.

◆ ptr [3/5]

typedef websocketpp::lib::shared_ptr<connection_metadata> connection_metadata::ptr

Definition at line 47 of file step4.cpp.

◆ ptr [4/5]

typedef websocketpp::lib::shared_ptr<connection_metadata> connection_metadata::ptr

Definition at line 47 of file step5.cpp.

◆ ptr [5/5]

typedef websocketpp::lib::shared_ptr<connection_metadata> connection_metadata::ptr

Definition at line 47 of file step6.cpp.

Constructor & Destructor Documentation

◆ connection_metadata() [1/5]

connection_metadata::connection_metadata ( int  id,
websocketpp::connection_hdl  hdl,
std::string  uri 
)
inline

Definition at line 49 of file scratch_client.cpp.

Referenced by websocket_endpoint::connect().

◆ connection_metadata() [2/5]

connection_metadata::connection_metadata ( int  id,
websocketpp::connection_hdl  hdl,
std::string  uri 
)
inline

Definition at line 49 of file utility_client.cpp.

◆ connection_metadata() [3/5]

connection_metadata::connection_metadata ( int  id,
websocketpp::connection_hdl  hdl,
std::string  uri 
)
inline

Definition at line 49 of file step4.cpp.

◆ connection_metadata() [4/5]

connection_metadata::connection_metadata ( int  id,
websocketpp::connection_hdl  hdl,
std::string  uri 
)
inline

Definition at line 49 of file step5.cpp.

◆ connection_metadata() [5/5]

connection_metadata::connection_metadata ( int  id,
websocketpp::connection_hdl  hdl,
std::string  uri 
)
inline

Definition at line 49 of file step6.cpp.

Member Function Documentation

◆ on_open() [1/5]

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

◆ on_fail() [1/5]

void connection_metadata::on_fail ( client c,
websocketpp::connection_hdl  hdl 
)
inline

◆ on_close() [1/4]

void connection_metadata::on_close ( client c,
websocketpp::connection_hdl  hdl 
)
inline

◆ get_hdl() [1/4]

websocketpp::connection_hdl connection_metadata::get_hdl ( ) const
inline

Definition at line 82 of file scratch_client.cpp.

◆ get_id() [1/4]

int connection_metadata::get_id ( ) const
inline

Definition at line 86 of file scratch_client.cpp.

◆ get_status() [1/4]

std::string connection_metadata::get_status ( ) const
inline

Definition at line 90 of file scratch_client.cpp.

References operator<<.

◆ on_open() [2/5]

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

◆ on_fail() [2/5]

void connection_metadata::on_fail ( client c,
websocketpp::connection_hdl  hdl 
)
inline

◆ on_close() [2/4]

void connection_metadata::on_close ( client c,
websocketpp::connection_hdl  hdl 
)
inline

◆ on_message() [1/2]

void connection_metadata::on_message ( websocketpp::connection_hdl  ,
client::message_ptr  msg 
)
inline

◆ get_hdl() [2/4]

websocketpp::connection_hdl connection_metadata::get_hdl ( ) const
inline

Definition at line 90 of file utility_client.cpp.

◆ get_id() [2/4]

int connection_metadata::get_id ( ) const
inline

Definition at line 94 of file utility_client.cpp.

◆ get_status() [2/4]

std::string connection_metadata::get_status ( ) const
inline

Definition at line 98 of file utility_client.cpp.

◆ record_sent_message() [1/2]

void connection_metadata::record_sent_message ( std::string  message)
inline

Definition at line 102 of file utility_client.cpp.

References operator<<.

◆ on_open() [3/5]

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

◆ on_fail() [3/5]

void connection_metadata::on_fail ( client c,
websocketpp::connection_hdl  hdl 
)
inline

◆ on_open() [4/5]

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

◆ on_fail() [4/5]

void connection_metadata::on_fail ( client c,
websocketpp::connection_hdl  hdl 
)
inline

◆ on_close() [3/4]

void connection_metadata::on_close ( client c,
websocketpp::connection_hdl  hdl 
)
inline

◆ get_hdl() [3/4]

websocketpp::connection_hdl connection_metadata::get_hdl ( ) const
inline

Definition at line 82 of file step5.cpp.

◆ get_id() [3/4]

int connection_metadata::get_id ( ) const
inline

Definition at line 86 of file step5.cpp.

◆ get_status() [3/4]

std::string connection_metadata::get_status ( ) const
inline

Definition at line 90 of file step5.cpp.

References operator<<.

◆ on_open() [5/5]

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

◆ on_fail() [5/5]

void connection_metadata::on_fail ( client c,
websocketpp::connection_hdl  hdl 
)
inline

◆ on_close() [4/4]

void connection_metadata::on_close ( client c,
websocketpp::connection_hdl  hdl 
)
inline

◆ on_message() [2/2]

void connection_metadata::on_message ( websocketpp::connection_hdl  ,
client::message_ptr  msg 
)
inline

Definition at line 82 of file step6.cpp.

References websocketpp::frame::opcode::text, and websocketpp::utility::to_hex().

◆ get_hdl() [4/4]

websocketpp::connection_hdl connection_metadata::get_hdl ( ) const
inline

Definition at line 90 of file step6.cpp.

◆ get_id() [4/4]

int connection_metadata::get_id ( ) const
inline

Definition at line 94 of file step6.cpp.

◆ get_status() [4/4]

std::string connection_metadata::get_status ( ) const
inline

Definition at line 98 of file step6.cpp.

◆ record_sent_message() [2/2]

void connection_metadata::record_sent_message ( std::string  message)
inline

Definition at line 102 of file step6.cpp.

References operator<<.

Friends And Related Function Documentation

◆ operator<< [1/5]

std::ostream& operator<< ( std::ostream &  out,
connection_metadata const &  data 
)
friend

Definition at line 104 of file scratch_client.cpp.

Referenced by get_status(), on_fail(), and record_sent_message().

◆ operator<< [2/5]

std::ostream& operator<< ( std::ostream &  out,
connection_metadata const &  data 
)
friend

Definition at line 104 of file scratch_client.cpp.

◆ operator<< [3/5]

std::ostream& operator<< ( std::ostream &  out,
connection_metadata const &  data 
)
friend

Definition at line 104 of file scratch_client.cpp.

◆ operator<< [4/5]

std::ostream& operator<< ( std::ostream &  out,
connection_metadata const &  data 
)
friend

Definition at line 104 of file scratch_client.cpp.

◆ operator<< [5/5]

std::ostream& operator<< ( std::ostream &  out,
connection_metadata const &  data 
)
friend

Definition at line 104 of file scratch_client.cpp.


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