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

Definition at line 49 of file broadcast_server.cpp.

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

Member Function Documentation

void broadcast_server::on_open ( connection_hdl  hdl)
inline

Definition at line 23 of file simple_broadcast_server.cpp.

Referenced by broadcast_server().

void broadcast_server::on_close ( connection_hdl  hdl)
inline

Definition at line 27 of file simple_broadcast_server.cpp.

Referenced by broadcast_server().

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

Definition at line 59 of file broadcast_server.cpp.

void broadcast_server::on_open ( connection_hdl  hdl)
inline

Definition at line 74 of file broadcast_server.cpp.

References action::action(), and SUBSCRIBE.

void broadcast_server::on_close ( connection_hdl  hdl)
inline

Definition at line 83 of file broadcast_server.cpp.

References action::action(), and UNSUBSCRIBE.

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.

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

void broadcast_server::on_open ( connection_hdl  hdl)
inline

Definition at line 22 of file simple_broadcast_server.cpp.

void broadcast_server::on_close ( connection_hdl  hdl)
inline

Definition at line 26 of file simple_broadcast_server.cpp.

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

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