dtn::BundleTransmittedEvent Class Reference

#include <BundleEvent.h>

Inheritance diagram for dtn::BundleTransmittedEvent:

dtn::BundleEvent oasys::SerializableObject List of all members.

Detailed Description

Event class for bundle or fragment transmission.

Definition at line 275 of file BundleEvent.h.

Public Member Functions

 BundleTransmittedEvent (Bundle *bundle, const ContactRef &contact, Link *link, u_int32_t bytes_sent, u_int32_t reliably_sent)
virtual void serialize (oasys::SerializeAction *a)
 This should call v->process() on each of the types that are to be serialized in the object.

Public Attributes

BundleRef bundleref_
 The transmitted bundle.
ContactRef contact_
 The contact where the bundle was sent.
u_int32_t bytes_sent_
 Total number of bytes sent.
u_int32_t reliably_sent_
 If the convergence layer that we sent on is reliable, this is the count of the bytes reliably sent, which must be less than or equal to the bytes transmitted.
Linklink_
 The link over which the bundle was sent (may not have a contact when the transmission result is reported).


Constructor & Destructor Documentation

dtn::BundleTransmittedEvent::BundleTransmittedEvent ( Bundle bundle,
const ContactRef contact,
Link link,
u_int32_t  bytes_sent,
u_int32_t  reliably_sent 
) [inline]

Definition at line 277 of file BundleEvent.h.


Member Function Documentation

void dtn::BundleTransmittedEvent::serialize ( oasys::SerializeAction a  )  [virtual]

This should call v->process() on each of the types that are to be serialized in the object.

Reimplemented from dtn::BundleEvent.

Definition at line 63 of file BundleEvent.cc.

References bundleref_, bytes_sent_, contact_, link_, oasys::Ref< _Type >::object(), oasys::SerializeAction::process(), and reliably_sent_.


Member Data Documentation

BundleRef dtn::BundleTransmittedEvent::bundleref_

The transmitted bundle.

Definition at line 291 of file BundleEvent.h.

Referenced by dtn::TcaRouter::handle_bundle_transmitted(), dtn::BundleDaemon::handle_bundle_transmitted(), and serialize().

ContactRef dtn::BundleTransmittedEvent::contact_

The contact where the bundle was sent.

Definition at line 294 of file BundleEvent.h.

Referenced by serialize().

u_int32_t dtn::BundleTransmittedEvent::bytes_sent_

Total number of bytes sent.

Definition at line 297 of file BundleEvent.h.

Referenced by dtn::BundleDaemon::handle_bundle_transmitted(), and serialize().

u_int32_t dtn::BundleTransmittedEvent::reliably_sent_

If the convergence layer that we sent on is reliable, this is the count of the bytes reliably sent, which must be less than or equal to the bytes transmitted.

Definition at line 302 of file BundleEvent.h.

Referenced by dtn::BundleDaemon::handle_bundle_transmitted(), and serialize().

Link* dtn::BundleTransmittedEvent::link_

The link over which the bundle was sent (may not have a contact when the transmission result is reported).

Definition at line 306 of file BundleEvent.h.

Referenced by dtn::BundleDaemon::handle_bundle_transmitted(), and serialize().


The documentation for this class was generated from the following files:
Generated on Thu Jun 7 16:56:56 2007 for DTN Reference Implementation by  doxygen 1.5.1