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

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

Definition at line 47 of file scratch_client.cpp.

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

Definition at line 47 of file utility_client.cpp.

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

Definition at line 47 of file step4.cpp.

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

Definition at line 47 of file step5.cpp.

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

Definition at line 47 of file step6.cpp.

Constructor & Destructor Documentation

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::connection_metadata ( int  id,
websocketpp::connection_hdl  hdl,
std::string  uri 
)
inline

Definition at line 49 of file utility_client.cpp.

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

Definition at line 49 of file step4.cpp.

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

Definition at line 49 of file step5.cpp.

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

void connection_metadata::on_open ( client c,
websocketpp::connection_hdl  hdl 
)
inline
void connection_metadata::on_fail ( client c,
websocketpp::connection_hdl  hdl 
)
inline
void connection_metadata::on_close ( client c,
websocketpp::connection_hdl  hdl 
)
inline
websocketpp::connection_hdl connection_metadata::get_hdl ( ) const
inline

Definition at line 82 of file scratch_client.cpp.

int connection_metadata::get_id ( ) const
inline

Definition at line 86 of file scratch_client.cpp.

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

Definition at line 90 of file scratch_client.cpp.

References operator<<.

void connection_metadata::on_open ( client c,
websocketpp::connection_hdl  hdl 
)
inline
void connection_metadata::on_fail ( client c,
websocketpp::connection_hdl  hdl 
)
inline
void connection_metadata::on_close ( client c,
websocketpp::connection_hdl  hdl 
)
inline
void connection_metadata::on_message ( websocketpp::connection_hdl  ,
client::message_ptr  msg 
)
inline
websocketpp::connection_hdl connection_metadata::get_hdl ( ) const
inline

Definition at line 90 of file utility_client.cpp.

int connection_metadata::get_id ( ) const
inline

Definition at line 94 of file utility_client.cpp.

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

Definition at line 98 of file utility_client.cpp.

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

Definition at line 102 of file utility_client.cpp.

References operator<<.

void connection_metadata::on_open ( client c,
websocketpp::connection_hdl  hdl 
)
inline
void connection_metadata::on_fail ( client c,
websocketpp::connection_hdl  hdl 
)
inline
void connection_metadata::on_open ( client c,
websocketpp::connection_hdl  hdl 
)
inline
void connection_metadata::on_fail ( client c,
websocketpp::connection_hdl  hdl 
)
inline
void connection_metadata::on_close ( client c,
websocketpp::connection_hdl  hdl 
)
inline
websocketpp::connection_hdl connection_metadata::get_hdl ( ) const
inline

Definition at line 82 of file step5.cpp.

int connection_metadata::get_id ( ) const
inline

Definition at line 86 of file step5.cpp.

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

Definition at line 90 of file step5.cpp.

References operator<<.

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

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

Definition at line 90 of file step6.cpp.

int connection_metadata::get_id ( ) const
inline

Definition at line 94 of file step6.cpp.

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

Definition at line 98 of file step6.cpp.

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

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

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

Definition at line 104 of file scratch_client.cpp.

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

Definition at line 104 of file scratch_client.cpp.

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

Definition at line 104 of file scratch_client.cpp.

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: