dtn::ContactEvent Class Reference

Abstract class for the subset of events related to contacts and links that defines a reason code enumerated type. More...

#include <BundleEvent.h>

Inheritance diagram for dtn::ContactEvent:

dtn::BundleEvent dtn::ContactAttributeChangedEvent dtn::ContactDownEvent dtn::ContactUpEvent dtn::LinkAttributeChangedEvent dtn::LinkAvailableEvent dtn::LinkCreatedEvent dtn::LinkDeletedEvent dtn::LinkStateChangeRequest dtn::LinkUnavailableEvent

List of all members.

Public Types

enum  reason_t {
  INVALID = 0, NO_INFO, USER, BROKEN,
  DISCOVERY, CL_ERROR, CL_VERSION, SHUTDOWN,
  RECONNECT, IDLE, TIMEOUT
}
 Reason codes for contact state operations. More...

Public Member Functions

 ContactEvent (event_type_t type, reason_t reason=NO_INFO)
 Constructor.

Static Public Member Functions

static const char * reason_to_str (int reason)
 Reason to string conversion.

Public Attributes

int reason_
 reason code for the event


Detailed Description

Abstract class for the subset of events related to contacts and links that defines a reason code enumerated type.

Definition at line 491 of file BundleEvent.h.


Member Enumeration Documentation

Reason codes for contact state operations.

Enumerator:
INVALID  Should not be used.
NO_INFO  No additional info.
USER  User action (i.e. console / config).
BROKEN  Unexpected session interruption.
DISCOVERY  Dynamically discovered link.
CL_ERROR  Convergence layer protocol error.
CL_VERSION  Convergence layer version mismatch.
SHUTDOWN  Clean connection shutdown.
RECONNECT  Re-establish link after failure.
IDLE  Idle connection shut down by the CL.
TIMEOUT  Scheduled link ended duration.

Definition at line 496 of file BundleEvent.h.


Constructor & Destructor Documentation

dtn::ContactEvent::ContactEvent ( event_type_t  type,
reason_t  reason = NO_INFO 
) [inline]

Constructor.

Definition at line 531 of file BundleEvent.h.


Member Function Documentation

static const char* dtn::ContactEvent::reason_to_str ( int  reason  )  [inline, static]


Member Data Documentation

reason code for the event

Definition at line 534 of file BundleEvent.h.

Referenced by dtn::BundleDaemon::handle_link_state_change_request(), and dtn::ContactManager::handle_link_unavailable().


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