#include <NullConvergenceLayer.h>
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. |
dtn::NullConvergenceLayer::NullConvergenceLayer | ( | ) | [inline] |
Definition at line 30 of file NullConvergenceLayer.h.
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_.