dtn::BundleAcceptRequest Class Reference

#include <BundleEvent.h>

Inheritance diagram for dtn::BundleAcceptRequest:

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

Detailed Description

Event class to optionally probe if a bundle can be accepted by the system before a BundleReceivedEvent is posted.

Currently used for backpressure via the API.

Note that the bundle may not be completely constructed when this event is posted. In particular, the payload need not be filled in yet, and other security fields may not be present. At a minimum though, the fields from the primary block and the payload length must be known.

Definition at line 905 of file BundleEvent.h.

Public Member Functions

 BundleAcceptRequest (const BundleRef &bundle, event_source_t source, bool *result, int *reason)
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 bundle_
 The newly arrived bundle.
int source_
 The source of the event.
boolresult_
 Pointer to the expected result.
int * reason_
 Pointer to the reason code.


Constructor & Destructor Documentation

dtn::BundleAcceptRequest::BundleAcceptRequest ( const BundleRef bundle,
event_source_t  source,
bool result,
int *  reason 
) [inline]

Definition at line 907 of file BundleEvent.h.


Member Function Documentation

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

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


Member Data Documentation

BundleRef dtn::BundleAcceptRequest::bundle_

The newly arrived bundle.

Definition at line 923 of file BundleEvent.h.

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

int dtn::BundleAcceptRequest::source_

The source of the event.

Definition at line 926 of file BundleEvent.h.

Referenced by serialize().

bool* dtn::BundleAcceptRequest::result_

Pointer to the expected result.

Definition at line 929 of file BundleEvent.h.

Referenced by dtn::BundleDaemon::handle_bundle_accept().

int* dtn::BundleAcceptRequest::reason_

Pointer to the reason code.

Definition at line 932 of file BundleEvent.h.

Referenced by dtn::BundleDaemon::handle_bundle_accept().


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