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

Public Member Functions

 broadcast_server ()
 
void on_open (connection_hdl hdl)
 
void on_close (connection_hdl hdl)
 
void on_message (connection_hdl hdl, server::message_ptr msg)
 
void run (uint16_t port)
 
 broadcast_server ()
 
void run (uint16_t port)
 
void on_open (connection_hdl hdl)
 
void on_close (connection_hdl hdl)
 
void on_message (connection_hdl hdl, server::message_ptr msg)
 
void process_messages ()
 
 broadcast_server ()
 
void on_open (connection_hdl hdl)
 
void on_close (connection_hdl hdl)
 
void on_message (connection_hdl hdl, server::message_ptr msg)
 
void run (uint16_t port)
 

Detailed Description

Definition at line 13 of file simple_broadcast_server.cpp.

Constructor & Destructor Documentation

◆ broadcast_server() [1/3]

◆ broadcast_server() [2/3]

broadcast_server::broadcast_server ( )
inline

Definition at line 49 of file broadcast_server.cpp.

References on_close(), on_message(), and on_open().

◆ broadcast_server() [3/3]

Member Function Documentation

◆ on_open() [1/3]

void broadcast_server::on_open ( connection_hdl  hdl)
inline

Definition at line 23 of file simple_broadcast_server.cpp.

Referenced by broadcast_server().

◆ on_close() [1/3]

void broadcast_server::on_close ( connection_hdl  hdl)
inline

Definition at line 27 of file simple_broadcast_server.cpp.

Referenced by broadcast_server().

◆ on_message() [1/3]

void broadcast_server::on_message ( connection_hdl  hdl,
server::message_ptr  msg 
)
inline

◆ run() [1/3]

void broadcast_server::run ( uint16_t  port)
inline

Definition at line 37 of file simple_broadcast_server.cpp.

References websocketpp::server< config >::start_accept().

Referenced by main().

◆ run() [2/3]

void broadcast_server::run ( uint16_t  port)
inline

Definition at line 59 of file broadcast_server.cpp.

◆ on_open() [2/3]

void broadcast_server::on_open ( connection_hdl  hdl)
inline

Definition at line 74 of file broadcast_server.cpp.

References action::action(), and SUBSCRIBE.

◆ on_close() [2/3]

void broadcast_server::on_close ( connection_hdl  hdl)
inline

Definition at line 83 of file broadcast_server.cpp.

References action::action(), and UNSUBSCRIBE.

◆ on_message() [2/3]

void broadcast_server::on_message ( connection_hdl  hdl,
server::message_ptr  msg 
)
inline

Definition at line 92 of file broadcast_server.cpp.

References action::action(), and MESSAGE.

◆ process_messages()

void broadcast_server::process_messages ( )
inline

Definition at line 102 of file broadcast_server.cpp.

References action::hdl, MESSAGE, action::msg, SUBSCRIBE, action::type, and UNSUBSCRIBE.

Referenced by main().

◆ on_open() [3/3]

void broadcast_server::on_open ( connection_hdl  hdl)
inline

Definition at line 22 of file simple_broadcast_server.cpp.

◆ on_close() [3/3]

void broadcast_server::on_close ( connection_hdl  hdl)
inline

Definition at line 26 of file simple_broadcast_server.cpp.

◆ on_message() [3/3]

void broadcast_server::on_message ( connection_hdl  hdl,
server::message_ptr  msg 
)
inline

◆ run() [3/3]

void broadcast_server::run ( uint16_t  port)
inline

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