Registration used for the simulator. More...
#include <SimRegistration.h>
Public Member Functions | |
| SimRegistration (Node *node, const EndpointID &endpoint) | |
| void | deliver_bundle (Bundle *bundle) |
| Deliver the given bundle. | |
Protected Attributes | |
| Node * | node_ |
Registration used for the simulator.
Definition at line 32 of file SimRegistration.h.
| dtnsim::SimRegistration::SimRegistration | ( | Node * | node, | |
| const EndpointID & | endpoint | |||
| ) |
Definition at line 37 of file SimRegistration.cc.
References dtnsim::Node::name(), and dtn::Registration::regid_.
| void dtnsim::SimRegistration::deliver_bundle | ( | Bundle * | bundle | ) | [virtual] |
Deliver the given bundle.
Implements dtn::Registration.
Definition at line 47 of file SimRegistration.cc.
References dtn::Bundle::bundleid(), dtn::EndpointID::c_str(), dtn::Bundle::dest(), dtn::BundlePayload::length(), dtnsim::Node::name(), node_, dtn::Bundle::payload(), and dtn::Bundle::source().
Node* dtnsim::SimRegistration::node_ [protected] |
Definition at line 42 of file SimRegistration.h.
Referenced by deliver_bundle().
1.6.3