dtn::NeighborhoodRouter Class Reference

#include <NeighborhoodRouter.h>

Inheritance diagram for dtn::NeighborhoodRouter:

dtn::TableBasedRouter dtn::BundleRouter dtn::BundleEventHandler oasys::Logger List of all members.

Detailed Description

Definition at line 24 of file NeighborhoodRouter.h.

Public Member Functions

 NeighborhoodRouter ()
void handle_contact_down (ContactDownEvent *event)
 Default event handler when a contact is down.
void handle_contact_up (ContactUpEvent *event)
 When a contact comes up, check to see if there are any matching bundles for it.


Constructor & Destructor Documentation

dtn::NeighborhoodRouter::NeighborhoodRouter (  ) 

Definition at line 32 of file NeighborhoodRouter.cc.

References log_info.


Member Function Documentation

void dtn::NeighborhoodRouter::handle_contact_down ( ContactDownEvent event  )  [virtual]

Default event handler when a contact is down.

Reimplemented from dtn::BundleEventHandler.

Definition at line 56 of file NeighborhoodRouter.cc.

References dtn::ContactDownEvent::contact_, dtn::RouteTable::del_entries_for_nexthop(), dtn::BundleEventHandler::handle_contact_down(), and dtn::TableBasedRouter::route_table_.

void dtn::NeighborhoodRouter::handle_contact_up ( ContactUpEvent event  )  [virtual]

When a contact comes up, check to see if there are any matching bundles for it.

Reimplemented from dtn::TableBasedRouter.

Definition at line 39 of file NeighborhoodRouter.cc.

References dtn::TableBasedRouter::add_route(), dtn::ContactUpEvent::contact_, dtn::ForwardingInfo::FORWARD_ACTION, dtn::TableBasedRouter::handle_contact_up(), log_info, and oasys::Ref< _Type >::object().


The documentation for this class was generated from the following files:
Generated on Thu Jun 7 12:54:33 2007 for DTN Reference Implementation by  doxygen 1.5.1