#include <BundleEvent.h>
Inheritance diagram for dtn::LinkStateChangeRequest:
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 589 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) | |
LinkStateChangeRequest (const oasys::Builder &, state_t state, reason_t 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 | |
Link * | 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. |
dtn::LinkStateChangeRequest::LinkStateChangeRequest | ( | Link * | link, | |
state_t | state, | |||
reason_t | reason | |||
) | [inline] |
Definition at line 594 of file BundleEvent.h.
References dtn::Link::contact(), contact_, dtn::BundleEvent::daemon_only_, old_state_, and dtn::Link::state().
dtn::LinkStateChangeRequest::LinkStateChangeRequest | ( | const oasys::Builder & | , | |
state_t | state, | |||
reason_t | reason | |||
) | [inline] |
void dtn::LinkStateChangeRequest::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::ContactEvent.
Definition at line 234 of file BundleEvent.cc.
References oasys::SerializeAction::action_code(), dtn::Link::contact(), contact_, dtn::BundleDaemon::contactmgr(), dtn::ContactManager::find_link(), link_, old_state_, oasys::SerializeAction::process(), dtn::Link::state(), and oasys::Serialize::UNMARSHAL.
The link to be changed.
Definition at line 616 of file BundleEvent.h.
Referenced by dtn::BundleDaemon::handle_link_state_change_request(), and serialize().
Requested state.
Definition at line 619 of file BundleEvent.h.
Referenced by dtn::ProphetRouter::handle_link_state_change_request(), and dtn::BundleDaemon::handle_link_state_change_request().
The active Contact when the request was made.
Definition at line 622 of file BundleEvent.h.
Referenced by dtn::ProphetRouter::handle_link_state_change_request(), dtn::BundleDaemon::handle_link_state_change_request(), LinkStateChangeRequest(), and serialize().
State when the request was made.
Definition at line 625 of file BundleEvent.h.
Referenced by dtn::ProphetRouter::handle_link_state_change_request(), dtn::BundleDaemon::handle_link_state_change_request(), LinkStateChangeRequest(), and serialize().