#include <NeighborhoodRouter.h>
Inheritance diagram for dtn::NeighborhoodRouter:
Definition at line 45 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. |
dtn::NeighborhoodRouter::NeighborhoodRouter | ( | ) |
void dtn::NeighborhoodRouter::handle_contact_down | ( | ContactDownEvent * | event | ) | [virtual] |
Default event handler when a contact is down.
Reimplemented from dtn::BundleEventHandler.
Definition at line 77 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 60 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().