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

Public Member Functions

 websocket_endpoint ()
 
 ~websocket_endpoint ()
 
int connect (std::string const &uri)
 
void close (int id, websocketpp::close::status::value code, std::string reason)
 
connection_metadata::ptr get_metadata (int id) const
 
 websocket_endpoint ()
 
 ~websocket_endpoint ()
 
int connect (std::string const &uri)
 
void close (int id, websocketpp::close::status::value code, std::string reason)
 
void send (int id, std::string message)
 
connection_metadata::ptr get_metadata (int id) const
 
 websocket_endpoint ()
 
 websocket_endpoint ()
 
int connect (std::string const &uri)
 
connection_metadata::ptr get_metadata (int id) const
 
 websocket_endpoint ()
 
 ~websocket_endpoint ()
 
int connect (std::string const &uri)
 
void close (int id, websocketpp::close::status::value code, std::string reason)
 
connection_metadata::ptr get_metadata (int id) const
 
 websocket_endpoint ()
 
 ~websocket_endpoint ()
 
int connect (std::string const &uri)
 
void close (int id, websocketpp::close::status::value code, std::string reason)
 
void send (int id, std::string message)
 
connection_metadata::ptr get_metadata (int id) const
 

Detailed Description

Definition at line 113 of file scratch_client.cpp.

Constructor & Destructor Documentation

◆ websocket_endpoint() [1/6]

websocket_endpoint::websocket_endpoint ( )
inline

◆ ~websocket_endpoint() [1/4]

websocket_endpoint::~websocket_endpoint ( )
inline

Definition at line 125 of file scratch_client.cpp.

References websocketpp::close::status::going_away.

◆ websocket_endpoint() [2/6]

websocket_endpoint::websocket_endpoint ( )
inline

◆ ~websocket_endpoint() [2/4]

websocket_endpoint::~websocket_endpoint ( )
inline

Definition at line 144 of file utility_client.cpp.

References websocketpp::close::status::going_away.

◆ websocket_endpoint() [3/6]

◆ websocket_endpoint() [4/6]

websocket_endpoint::websocket_endpoint ( )
inline

Definition at line 93 of file step4.cpp.

References websocketpp::log::elevel::all, and websocketpp::log::alevel::all.

◆ websocket_endpoint() [5/6]

websocket_endpoint::websocket_endpoint ( )
inline

Definition at line 115 of file step5.cpp.

References websocketpp::log::elevel::all, and websocketpp::log::alevel::all.

◆ ~websocket_endpoint() [3/4]

websocket_endpoint::~websocket_endpoint ( )
inline

Definition at line 125 of file step5.cpp.

References websocketpp::close::status::going_away.

◆ websocket_endpoint() [6/6]

websocket_endpoint::websocket_endpoint ( )
inline

Definition at line 134 of file step6.cpp.

References websocketpp::log::elevel::all, and websocketpp::log::alevel::all.

◆ ~websocket_endpoint() [4/4]

websocket_endpoint::~websocket_endpoint ( )
inline

Definition at line 144 of file step6.cpp.

References websocketpp::close::status::going_away.

Member Function Documentation

◆ connect() [1/5]

int websocket_endpoint::connect ( std::string const &  uri)
inline

◆ close() [1/4]

void websocket_endpoint::close ( int  id,
websocketpp::close::status::value  code,
std::string  reason 
)
inline

Definition at line 185 of file scratch_client.cpp.

Referenced by main().

◆ get_metadata() [1/5]

connection_metadata::ptr websocket_endpoint::get_metadata ( int  id) const
inline

Definition at line 200 of file scratch_client.cpp.

Referenced by main().

◆ connect() [2/5]

int websocket_endpoint::connect ( std::string const &  uri)
inline

◆ close() [2/4]

void websocket_endpoint::close ( int  id,
websocketpp::close::status::value  code,
std::string  reason 
)
inline

Definition at line 210 of file utility_client.cpp.

◆ send() [1/2]

void websocket_endpoint::send ( int  id,
std::string  message 
)
inline

Definition at line 225 of file utility_client.cpp.

References websocketpp::frame::opcode::text.

Referenced by main().

◆ get_metadata() [2/5]

connection_metadata::ptr websocket_endpoint::get_metadata ( int  id) const
inline

Definition at line 243 of file utility_client.cpp.

◆ connect() [3/5]

int websocket_endpoint::connect ( std::string const &  uri)
inline

Definition at line 103 of file step4.cpp.

References connection_metadata::on_fail(), and connection_metadata::on_open().

◆ get_metadata() [3/5]

connection_metadata::ptr websocket_endpoint::get_metadata ( int  id) const
inline

Definition at line 135 of file step4.cpp.

◆ connect() [4/5]

int websocket_endpoint::connect ( std::string const &  uri)
inline

◆ close() [3/4]

void websocket_endpoint::close ( int  id,
websocketpp::close::status::value  code,
std::string  reason 
)
inline

Definition at line 185 of file step5.cpp.

◆ get_metadata() [4/5]

connection_metadata::ptr websocket_endpoint::get_metadata ( int  id) const
inline

Definition at line 200 of file step5.cpp.

◆ connect() [5/5]

int websocket_endpoint::connect ( std::string const &  uri)
inline

◆ close() [4/4]

void websocket_endpoint::close ( int  id,
websocketpp::close::status::value  code,
std::string  reason 
)
inline

Definition at line 210 of file step6.cpp.

◆ send() [2/2]

void websocket_endpoint::send ( int  id,
std::string  message 
)
inline

Definition at line 225 of file step6.cpp.

References websocketpp::frame::opcode::text.

◆ get_metadata() [5/5]

connection_metadata::ptr websocket_endpoint::get_metadata ( int  id) const
inline

Definition at line 243 of file step6.cpp.


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