dtn::BundleReceivedEvent Class Reference

Event class for new bundle arrivals. More...

#include <BundleEvent.h>

Inheritance diagram for dtn::BundleReceivedEvent:
dtn::BundleEvent

List of all members.

Public Member Functions

 BundleReceivedEvent (Bundle *bundle, event_source_t source, u_int32_t bytes_received, const EndpointID &prevhop, Link *originator=NULL)
 BundleReceivedEvent (Bundle *bundle, event_source_t source, Registration *registration)
 BundleReceivedEvent (Bundle *bundle, event_source_t source)

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.
LinkRef link_
 Link from which bundle was received, if applicable.
EndpointID prevhop_
 Previous hop endpoint id.
Registrationregistration_
 Registration where the bundle arrived.

Detailed Description

Event class for new bundle arrivals.

Definition at line 312 of file BundleEvent.h.


Constructor & Destructor Documentation

dtn::BundleReceivedEvent::BundleReceivedEvent ( Bundle bundle,
event_source_t  source,
u_int32_t  bytes_received,
const EndpointID prevhop,
Link originator = NULL 
) [inline]

Definition at line 318 of file BundleEvent.h.

References ASSERT, and dtn::EVENTSRC_PEER.

dtn::BundleReceivedEvent::BundleReceivedEvent ( Bundle bundle,
event_source_t  source,
Registration registration 
) [inline]

Definition at line 339 of file BundleEvent.h.

dtn::BundleReceivedEvent::BundleReceivedEvent ( Bundle bundle,
event_source_t  source 
) [inline]

Definition at line 356 of file BundleEvent.h.


Member Data Documentation

The newly arrived bundle.

Definition at line 369 of file BundleEvent.h.

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

The total bytes actually received.

Definition at line 375 of file BundleEvent.h.

Link from which bundle was received, if applicable.

Definition at line 378 of file BundleEvent.h.

Referenced by dtn::TableBasedRouter::handle_bundle_received(), and dtn::ProphetRouter::handle_bundle_received().

Previous hop endpoint id.

Definition at line 381 of file BundleEvent.h.

Registration where the bundle arrived.

Definition at line 384 of file BundleEvent.h.

The source of the bundle.

Definition at line 372 of file BundleEvent.h.

Referenced by dtn::ProphetRouter::handle_bundle_received(), and dtn::TableBasedRouter::handle_session_bundle().


The documentation for this class was generated from the following file:
Generated on Sun Nov 21 13:21:07 2010 for DTN Reference Implementation by  doxygen 1.6.3