dtn::LinkStateChangeRequest Class Reference

#include <BundleEvent.h>

Inheritance diagram for dtn::LinkStateChangeRequest:

dtn::ContactEvent dtn::BundleEvent List of all members.

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 462 of file BundleEvent.h.

Public Types

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

Public Member Functions

 LinkStateChangeRequest (Link *link, state_t state, reason_t reason)

Public Attributes

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


Member Typedef Documentation

typedef Link::state_t dtn::LinkStateChangeRequest::state_t

Shared type code for state_t with Link.

Definition at line 465 of file BundleEvent.h.


Constructor & Destructor Documentation

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

Definition at line 467 of file BundleEvent.h.

References dtn::Link::contact(), contact_, dtn::BundleEvent::daemon_only_, old_state_, and dtn::Link::state().


Member Data Documentation

Link* dtn::LinkStateChangeRequest::link_

The link to be changed.

Definition at line 478 of file BundleEvent.h.

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

state_t dtn::LinkStateChangeRequest::state_

Requested state.

Definition at line 481 of file BundleEvent.h.

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

ContactRef dtn::LinkStateChangeRequest::contact_

The active Contact when the request was made.

Definition at line 484 of file BundleEvent.h.

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

state_t dtn::LinkStateChangeRequest::old_state_

State when the request was made.

Definition at line 487 of file BundleEvent.h.

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


The documentation for this class was generated from the following file:
Generated on Fri Dec 22 14:48:03 2006 for DTN Reference Implementation by  doxygen 1.5.1