dtn::NullConvergenceLayer Class Reference

#include <NullConvergenceLayer.h>

Inheritance diagram for dtn::NullConvergenceLayer:

dtn::ConvergenceLayer oasys::Logger

List of all members.


Detailed Description

The null convergence layer consumes all bundles immediately and does no actual transmission, roughly similar to /dev/null.

Definition at line 28 of file NullConvergenceLayer.h.


Public Member Functions

 NullConvergenceLayer ()
bool open_contact (const ContactRef &contact)
 Open the given contact.
void send_bundle (const ContactRef &contact, Bundle *bundle)
 Try to send the given bundle on the current link.

Constructor & Destructor Documentation

dtn::NullConvergenceLayer::NullConvergenceLayer (  )  [inline]

Definition at line 30 of file NullConvergenceLayer.h.


Member Function Documentation

bool dtn::NullConvergenceLayer::open_contact ( const ContactRef contact  )  [virtual]

Open the given contact.

Implements dtn::ConvergenceLayer.

Definition at line 27 of file NullConvergenceLayer.cc.

References dtn::BundleDaemon::post().

void dtn::NullConvergenceLayer::send_bundle ( const ContactRef contact,
Bundle bundle 
) [virtual]

Try to send the given bundle on the current link.

In some cases (e.g. TCP) this just sticks bundles on a queue for another thread to consume (after setting the link state to BUSY). In others (e.g. UDP) there is no per-contact thread, so this callback is used to send the bundle.

Implements dtn::ConvergenceLayer.

Definition at line 34 of file NullConvergenceLayer.cc.

References ASSERT, dtn::LinkBlockSet::find_blocks(), log_debug, oasys::Ref< _Type >::object(), dtn::BundleDaemon::post(), dtn::BundleProtocol::total_length(), and dtn::Bundle::xmit_blocks_.


The documentation for this class was generated from the following files:
Generated on Sat Sep 8 08:43:46 2007 for DTN Reference Implementation by  doxygen 1.5.3