dtn::LinkStateChangeRequest Class Reference

Request class for link state change requests that are sent to the daemon thread for processing. More...

#include <BundleEvent.h>

Inheritance diagram for dtn::LinkStateChangeRequest:

dtn::ContactEvent dtn::BundleEvent

List of all members.

Public Types

typedef Link::state_t state_t
 Shared type code for state_t with Link.

Public Member Functions

 LinkStateChangeRequest (const LinkRef &link, state_t state, reason_t reason)
 LinkStateChangeRequest (const oasys::Builder &, state_t state, reason_t reason)

Public Attributes

LinkRef link_
 The link to be changed.
int state_
 Requested state.
ContactRef contact_
 The active Contact when the request was made.
int old_state_
 State when the request was made.


Detailed Description

Request class for link state change requests that are sent to the daemon thread for processing.

This includes requests to open or close the link, and changing its status to available or unavailable.

When closing a link, a reason must be given for the event.

Definition at line 653 of file BundleEvent.h.


Member Typedef Documentation

Shared type code for state_t with Link.

Definition at line 656 of file BundleEvent.h.


Constructor & Destructor Documentation

dtn::LinkStateChangeRequest::LinkStateChangeRequest ( const LinkRef link,
state_t  state,
reason_t  reason 
) [inline]

Definition at line 658 of file BundleEvent.h.

References contact_, dtn::BundleEvent::daemon_only_, and old_state_.

dtn::LinkStateChangeRequest::LinkStateChangeRequest ( const oasys::Builder &  ,
state_t  state,
reason_t  reason 
) [inline]

Definition at line 669 of file BundleEvent.h.

References dtn::BundleEvent::daemon_only_.


Member Data Documentation

The active Contact when the request was made.

Definition at line 684 of file BundleEvent.h.

Referenced by dtn::BundleDaemon::handle_link_state_change_request(), and LinkStateChangeRequest().

The link to be changed.

Definition at line 678 of file BundleEvent.h.

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

State when the request was made.

Definition at line 687 of file BundleEvent.h.

Referenced by dtn::BundleDaemon::handle_link_state_change_request(), and LinkStateChangeRequest().

Requested state.

Definition at line 681 of file BundleEvent.h.

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


The documentation for this class was generated from the following file:

Generated on Fri Jan 30 09:43:12 2009 for DTN Reference Implementation by  doxygen 1.5.8