dtn::BundleReceivedEvent Class Reference

#include <BundleEvent.h>

Inheritance diagram for dtn::BundleReceivedEvent:

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

Detailed Description

Event class for new bundle arrivals.

Definition at line 237 of file BundleEvent.h.

Public Member Functions

 BundleReceivedEvent (Bundle *bundle, event_source_t source, u_int32_t bytes_received=0, Contact *originator=NULL)
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 newly arrived bundle.
int source_
 The source of the bundle.
u_int32_t bytes_received_
 The total bytes actually received.
ContactRef contact_
 Contact from which bundle was received, if applicable.


Constructor & Destructor Documentation

dtn::BundleReceivedEvent::BundleReceivedEvent ( Bundle bundle,
event_source_t  source,
u_int32_t  bytes_received = 0,
Contact originator = NULL 
) [inline]

Definition at line 243 of file BundleEvent.h.


Member Function Documentation

void dtn::BundleReceivedEvent::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 55 of file BundleEvent.cc.

References bundleref_, bytes_received_, oasys::Ref< _Type >::object(), oasys::SerializeAction::process(), and source_.


Member Data Documentation

BundleRef dtn::BundleReceivedEvent::bundleref_

The newly arrived bundle.

Definition at line 260 of file BundleEvent.h.

Referenced by dtn::ProphetRouter::handle_bundle_delivered(), dtn::TcaRouter::handle_bundle_received(), dtn::TableBasedRouter::handle_bundle_received(), dtn::ProphetRouter::handle_bundle_received(), dtn::LinkStateRouter::handle_bundle_received(), dtn::FloodBundleRouter::handle_bundle_received(), dtn::BundleDaemon::handle_bundle_received(), and serialize().

int dtn::BundleReceivedEvent::source_

The source of the bundle.

Definition at line 263 of file BundleEvent.h.

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

u_int32_t dtn::BundleReceivedEvent::bytes_received_

The total bytes actually received.

Definition at line 266 of file BundleEvent.h.

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

ContactRef dtn::BundleReceivedEvent::contact_

Contact from which bundle was received, if applicable.

Definition at line 269 of file BundleEvent.h.

Referenced by dtn::ProphetRouter::handle_bundle_received().


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