ProphetRouter.cc

Go to the documentation of this file.
00001 #include "BundleRouter.h"
00002 #include "RouteTable.h"
00003 #include "bundling/Bundle.h"
00004 #include "bundling/BundleActions.h"
00005 #include "bundling/BundleDaemon.h"
00006 #include "bundling/BundleList.h"
00007 #include "bundling/AnnounceBundle.h"
00008 #include "contacts/Contact.h"
00009 #include "contacts/ContactManager.h"
00010 #include "reg/Registration.h"
00011 #include <stdlib.h>
00012 
00013 #include "ProphetRouter.h"
00014 
00015 namespace dtn {
00016 
00017 ProphetRouter::ProphetRouter()
00018     : TableBasedRouter("ProphetRouter", "prophet")
00019 {
00020     log_info("Initializing ProphetRouter");
00021 }
00022 
00023 void
00024 ProphetRouter::handle_link_created(LinkCreatedEvent* event)
00025 {
00026     ASSERT(event->link_->remote_eid().equals(EndpointID::NULL_EID()) == false);
00027     TableBasedRouter::handle_link_created(event);
00028 }
00029 
00030 void
00031 ProphetRouter::handle_contact_down(ContactDownEvent* event)
00032 {
00033     route_table_->del_entries_for_nexthop(event->contact_->link());
00034 
00035     TableBasedRouter::handle_contact_down(event);
00036 }
00037 
00038 } // namespace dtn

Generated on Fri Dec 22 14:48:00 2006 for DTN Reference Implementation by  doxygen 1.5.1