Request class for link state change requests that are sent to the daemon thread for processing. More...
#include <BundleEvent.h>
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. |
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.
Shared type code for state_t with Link.
Definition at line 656 of file BundleEvent.h.
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_.
The active Contact when the request was made.
Definition at line 684 of file BundleEvent.h.
Referenced by LinkStateChangeRequest().
The link to be changed.
Definition at line 678 of file BundleEvent.h.
State when the request was made.
Definition at line 687 of file BundleEvent.h.
Referenced by LinkStateChangeRequest().
Requested state.
Definition at line 681 of file BundleEvent.h.