dtn::UDPConvergenceLayer::Receiver Class Reference

Helper class (and thread) that listens on a registered interface for incoming data. More...

#include <UDPConvergenceLayer.h>

Inheritance diagram for dtn::UDPConvergenceLayer::Receiver:
dtn::CLInfo

List of all members.

Public Member Functions

 Receiver (UDPConvergenceLayer::Params *params)
 Constructor.
virtual ~Receiver ()
 Destructor.
void run ()
 Loop forever, issuing blocking calls to IPSocket::recvfrom(), then calling the process_data function when new data does arrive.

Public Attributes

UDPConvergenceLayer::Params params_

Protected Member Functions

void process_data (u_char *bp, size_t len)
 Handler to process an arrived packet.

Detailed Description

Helper class (and thread) that listens on a registered interface for incoming data.

Definition at line 128 of file UDPConvergenceLayer.h.


Constructor & Destructor Documentation

dtn::UDPConvergenceLayer::Receiver::Receiver ( UDPConvergenceLayer::Params params  ) 

Constructor.

Definition at line 350 of file UDPConvergenceLayer.cc.

References params_.

virtual dtn::UDPConvergenceLayer::Receiver::~Receiver (  )  [inline, virtual]

Destructor.

Definition at line 141 of file UDPConvergenceLayer.h.


Member Function Documentation

void dtn::UDPConvergenceLayer::Receiver::process_data ( u_char *  bp,
size_t  len 
) [protected]
void dtn::UDPConvergenceLayer::Receiver::run (  ) 

Loop forever, issuing blocking calls to IPSocket::recvfrom(), then calling the process_data function when new data does arrive.

Note that unlike in the Thread base class, this run() method is public in case we don't want to actually create a new thread for this guy, but instead just want to run the main loop.

Definition at line 390 of file UDPConvergenceLayer.cc.

References buf, errno, and process_data().


Member Data Documentation

Definition at line 154 of file UDPConvergenceLayer.h.

Referenced by Receiver().


The documentation for this class was generated from the following files:
Generated on Sun Nov 21 11:41:06 2010 for DTN Reference Implementation by  doxygen 1.6.3