IBR-DTNSuite
0.12
|
#include <StreamDataSegment.h>
Public Types | |
enum | SegmentType { MSG_DATA_SEGMENT = 0x1, MSG_ACK_SEGMENT = 0x2, MSG_REFUSE_BUNDLE = 0x3, MSG_KEEPALIVE = 0x4, MSG_SHUTDOWN = 0x5 } |
enum | SegmentMark { MSG_MARK_BEGINN = 0x02, MSG_MARK_END = 0x01 } |
enum | ShutdownReason { MSG_SHUTDOWN_NONE = 0xff, MSG_SHUTDOWN_IDLE_TIMEOUT = 0x00, MSG_SHUTDOWN_VERSION_MISSMATCH = 0x01, MSG_SHUTDOWN_BUSY = 0x02 } |
Public Member Functions | |
StreamDataSegment (SegmentType type, const dtn::data::Number &size) | |
StreamDataSegment (SegmentType type=MSG_KEEPALIVE) | |
StreamDataSegment (ShutdownReason reason, const dtn::data::Number &reconnect=0) | |
virtual | ~StreamDataSegment () |
Public Attributes | |
dtn::data::Number | _value |
SegmentType | _type |
ShutdownReason | _reason |
uint8_t | _flags |
Friends | |
std::ostream & | operator<< (std::ostream &stream, const StreamDataSegment &seg) |
std::istream & | operator>> (std::istream &stream, StreamDataSegment &seg) |
Definition at line 35 of file StreamDataSegment.h.
Enumerator | |
---|---|
MSG_MARK_BEGINN | |
MSG_MARK_END |
Definition at line 47 of file StreamDataSegment.h.
Enumerator | |
---|---|
MSG_DATA_SEGMENT | |
MSG_ACK_SEGMENT | |
MSG_REFUSE_BUNDLE | |
MSG_KEEPALIVE | |
MSG_SHUTDOWN |
Definition at line 38 of file StreamDataSegment.h.
Enumerator | |
---|---|
MSG_SHUTDOWN_NONE | |
MSG_SHUTDOWN_IDLE_TIMEOUT | |
MSG_SHUTDOWN_VERSION_MISSMATCH | |
MSG_SHUTDOWN_BUSY |
Definition at line 53 of file StreamDataSegment.h.
dtn::streams::StreamDataSegment::StreamDataSegment | ( | SegmentType | type, |
const dtn::data::Number & | size | ||
) |
Definition at line 29 of file StreamDataSegment.cpp.
dtn::streams::StreamDataSegment::StreamDataSegment | ( | SegmentType | type = MSG_KEEPALIVE ) |
Definition at line 34 of file StreamDataSegment.cpp.
dtn::streams::StreamDataSegment::StreamDataSegment | ( | ShutdownReason | reason, |
const dtn::data::Number & | reconnect = 0 |
||
) |
Definition at line 39 of file StreamDataSegment.cpp.
|
virtual |
Definition at line 44 of file StreamDataSegment.cpp.
|
friend |
Definition at line 48 of file StreamDataSegment.cpp.
|
friend |
Definition at line 84 of file StreamDataSegment.cpp.
uint8_t dtn::streams::StreamDataSegment::_flags |
Definition at line 70 of file StreamDataSegment.h.
Referenced by dtn::streams::operator<<(), and dtn::streams::operator>>().
ShutdownReason dtn::streams::StreamDataSegment::_reason |
Definition at line 69 of file StreamDataSegment.h.
Referenced by dtn::streams::operator<<(), and dtn::streams::operator>>().
SegmentType dtn::streams::StreamDataSegment::_type |
Definition at line 68 of file StreamDataSegment.h.
Referenced by dtn::streams::operator<<(), and dtn::streams::operator>>().
dtn::data::Number dtn::streams::StreamDataSegment::_value |
Definition at line 67 of file StreamDataSegment.h.
Referenced by dtn::streams::operator<<(), and dtn::streams::operator>>().