IBR-DTNSuite
0.8
|
#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, size_t size) | |
StreamDataSegment (SegmentType type=MSG_KEEPALIVE) | |
StreamDataSegment (ShutdownReason reason, size_t reconnect=0) | |
virtual | ~StreamDataSegment () |
Public Attributes | |
size_t | _value |
SegmentType | _type |
ShutdownReason | _reason |
u_int8_t | _flags |
Friends | |
std::ostream & | operator<< (std::ostream &stream, const StreamDataSegment &seg) |
std::istream & | operator>> (std::istream &stream, StreamDataSegment &seg) |
Definition at line 19 of file StreamDataSegment.h.
Definition at line 31 of file StreamDataSegment.h.
Definition at line 22 of file StreamDataSegment.h.
MSG_SHUTDOWN_NONE | |
MSG_SHUTDOWN_IDLE_TIMEOUT | |
MSG_SHUTDOWN_VERSION_MISSMATCH | |
MSG_SHUTDOWN_BUSY |
Definition at line 37 of file StreamDataSegment.h.
dtn::streams::StreamDataSegment::StreamDataSegment | ( | SegmentType | type, |
size_t | size | ||
) |
Definition at line 17 of file StreamDataSegment.cpp.
Definition at line 22 of file StreamDataSegment.cpp.
dtn::streams::StreamDataSegment::StreamDataSegment | ( | ShutdownReason | reason, |
size_t | reconnect = 0 |
||
) |
Definition at line 27 of file StreamDataSegment.cpp.
dtn::streams::StreamDataSegment::~StreamDataSegment | ( | ) | [virtual] |
Definition at line 32 of file StreamDataSegment.cpp.
std::ostream& operator<< | ( | std::ostream & | stream, |
const StreamDataSegment & | seg | ||
) | [friend] |
Definition at line 36 of file StreamDataSegment.cpp.
std::istream& operator>> | ( | std::istream & | stream, |
StreamDataSegment & | seg | ||
) | [friend] |
Definition at line 72 of file StreamDataSegment.cpp.
Definition at line 54 of file StreamDataSegment.h.
Referenced by dtn::streams::operator<<(), and dtn::streams::operator>>().
Definition at line 53 of file StreamDataSegment.h.
Referenced by dtn::streams::operator<<(), and dtn::streams::operator>>().
Definition at line 52 of file StreamDataSegment.h.
Referenced by dtn::streams::operator<<(), and dtn::streams::operator>>().
Definition at line 51 of file StreamDataSegment.h.
Referenced by dtn::streams::operator<<(), and dtn::streams::operator>>().