Abstract class for the subset of events related to contacts and links that defines a reason code enumerated type. More...
#include <BundleEvent.h>
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 |
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.
Reason codes for contact state operations.
Definition at line 496 of file BundleEvent.h.
dtn::ContactEvent::ContactEvent | ( | event_type_t | type, | |
reason_t | reason = NO_INFO | |||
) | [inline] |
Constructor.
Definition at line 531 of file BundleEvent.h.
static const char* dtn::ContactEvent::reason_to_str | ( | int | reason | ) | [inline, static] |
reason code for the event
Definition at line 534 of file BundleEvent.h.