dtn::ProphetRouter Class Reference

#include <ProphetRouter.h>

Inheritance diagram for dtn::ProphetRouter:

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

Detailed Description

Definition at line 9 of file ProphetRouter.h.

Public Member Functions

 ProphetRouter ()
void handle_link_created (LinkCreatedEvent *event)
 If a link gets created with a remote eid, add the route.
void handle_contact_down (ContactDownEvent *event)
 Default event handler when a contact is down.


Constructor & Destructor Documentation

dtn::ProphetRouter::ProphetRouter (  ) 

Definition at line 17 of file ProphetRouter.cc.

References log_info.


Member Function Documentation

void dtn::ProphetRouter::handle_link_created ( LinkCreatedEvent event  )  [virtual]

If a link gets created with a remote eid, add the route.

Reimplemented from dtn::TableBasedRouter.

Definition at line 24 of file ProphetRouter.cc.

References ASSERT, dtn::EndpointID::equals(), dtn::TableBasedRouter::handle_link_created(), dtn::LinkCreatedEvent::link_, dtn::EndpointID::NULL_EID(), and dtn::Link::remote_eid().

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

Default event handler when a contact is down.

Reimplemented from dtn::BundleEventHandler.

Definition at line 31 of file ProphetRouter.cc.

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


The documentation for this class was generated from the following files:
Generated on Fri Dec 22 14:48:05 2006 for DTN Reference Implementation by  doxygen 1.5.1