#include <TrAgent.h>
Public Member Functions | |
| virtual | ~TrAgent () |
| void | timeout (const struct timeval &now) |
Static Public Member Functions | |
| static TrAgent * | init (const EndpointID &src, const EndpointID &dst, int argc, const char **argv) |
Private Member Functions | |
| TrAgent (const EndpointID &src, const EndpointID &dst) | |
| void | send_bundle () |
Private Attributes | |
| EndpointID | src_ |
| source eid | |
| EndpointID | dst_ |
| destination eid | |
| u_int64_t | size_ |
| size of each message | |
| u_int | expiration_ |
| expiration time for each bundle | |
| u_int | reps_ |
| total number of reps/batches | |
| u_int | batch_ |
| no of messages in each batch | |
| double | interval_ |
| time gap between two batches | |
Definition at line 31 of file TrAgent.h.
| dtnsim::TrAgent::TrAgent | ( | const EndpointID & | src, | |
| const EndpointID & | dst | |||
| ) | [private] |
Definition at line 37 of file TrAgent.cc.
Referenced by init().
| TrAgent * dtnsim::TrAgent::init | ( | const EndpointID & | src, | |
| const EndpointID & | dst, | |||
| int | argc, | |||
| const char ** | argv | |||
| ) | [static] |
Definition at line 46 of file TrAgent.cc.
References batch_, expiration_, interval_, reps_, size_, and TrAgent().
Referenced by dtnsim::NodeCommand::exec().
| void dtnsim::TrAgent::send_bundle | ( | ) | [private] |
Definition at line 101 of file TrAgent.cc.
References dtnsim::Node::active_node(), dtn::EndpointID::assign(), dtn::Bundle::bundleid(), dtn::EndpointID::c_str(), dst_, dtn::EVENTSRC_APP, expiration_, dtn::Bundle::mutable_custodian(), dtn::Bundle::mutable_dest(), dtn::Bundle::mutable_payload(), dtn::Bundle::mutable_replyto(), dtn::Bundle::mutable_source(), dtn::Bundle::set_app_acked_rcpt(), dtn::Bundle::set_creation_ts(), dtn::Bundle::set_custody_rcpt(), dtn::Bundle::set_custody_requested(), dtn::Bundle::set_deletion_rcpt(), dtn::Bundle::set_delivery_rcpt(), dtn::Bundle::set_do_not_fragment(), dtn::Bundle::set_expiration(), dtn::Bundle::set_forward_rcpt(), dtn::Bundle::set_in_datastore(), dtn::Bundle::set_is_admin(), dtn::Bundle::set_is_fragment(), dtn::BundlePayload::set_length(), dtn::Bundle::set_local_custody(), dtn::Bundle::set_priority(), dtn::Bundle::set_receive_rcpt(), dtn::Bundle::set_singleton_dest(), size_, and src_.
Referenced by timeout().
| void dtnsim::TrAgent::timeout | ( | const struct timeval & | now | ) |
Definition at line 85 of file TrAgent.cc.
References batch_, interval_, reps_, and send_bundle().
u_int dtnsim::TrAgent::batch_ [private] |
EndpointID dtnsim::TrAgent::dst_ [private] |
u_int dtnsim::TrAgent::expiration_ [private] |
expiration time for each bundle
Definition at line 48 of file TrAgent.h.
Referenced by init(), and send_bundle().
double dtnsim::TrAgent::interval_ [private] |
u_int dtnsim::TrAgent::reps_ [private] |
u_int64_t dtnsim::TrAgent::size_ [private] |
size of each message
Definition at line 47 of file TrAgent.h.
Referenced by init(), and send_bundle().
EndpointID dtnsim::TrAgent::src_ [private] |
1.6.3