IBR-DTNSuite
0.12
|
#include <StreamContactHeader.h>
Public Types | |
enum | HEADER_BITS { REQUEST_ACKNOWLEDGMENTS = 1 << 0, REQUEST_FRAGMENTATION = 1 << 1, REQUEST_NEGATIVE_ACKNOWLEDGMENTS = 1 << 2, REQUEST_TLS = 1 << 7, HANDSHAKE_SENDONLY = 0x80 } |
Public Member Functions | |
StreamContactHeader () | |
StreamContactHeader (EID localeid) | |
virtual | ~StreamContactHeader () |
StreamContactHeader & | operator= (const StreamContactHeader &other) |
const EID | getEID () const |
Public Attributes | |
EID | _localeid |
dtn::data::Bitset< HEADER_BITS > | _flags |
uint16_t | _keepalive |
Friends | |
std::ostream & | operator<< (std::ostream &stream, const StreamContactHeader &h) |
std::istream & | operator>> (std::istream &stream, StreamContactHeader &h) |
Definition at line 42 of file StreamContactHeader.h.
Enumerator | |
---|---|
REQUEST_ACKNOWLEDGMENTS | |
REQUEST_FRAGMENTATION | |
REQUEST_NEGATIVE_ACKNOWLEDGMENTS | |
REQUEST_TLS | |
HANDSHAKE_SENDONLY |
The client only send bundle and do not want to received any bundle. |
Definition at line 45 of file StreamContactHeader.h.
dtn::streams::StreamContactHeader::StreamContactHeader | ( | ) |
Definition at line 39 of file StreamContactHeader.cpp.
dtn::streams::StreamContactHeader::StreamContactHeader | ( | EID | localeid) |
Definition at line 44 of file StreamContactHeader.cpp.
|
virtual |
Definition at line 49 of file StreamContactHeader.cpp.
const EID dtn::streams::StreamContactHeader::getEID | ( | ) | const |
Definition at line 61 of file StreamContactHeader.cpp.
References _localeid.
Referenced by dtn::net::TCPConnection::clearQueue(), and dtn::net::TCPConnection::initiateExtendedHandshake().
StreamContactHeader & dtn::streams::StreamContactHeader::operator= | ( | const StreamContactHeader & | other) |
Definition at line 53 of file StreamContactHeader.cpp.
References _flags, _keepalive, and _localeid.
|
friend |
Definition at line 66 of file StreamContactHeader.cpp.
|
friend |
Definition at line 81 of file StreamContactHeader.cpp.
dtn::data::Bitset<HEADER_BITS> dtn::streams::StreamContactHeader::_flags |
Definition at line 64 of file StreamContactHeader.h.
Referenced by dtn::net::TCPConnection::clearQueue(), dtn::streams::StreamConnection::handshake(), dtn::net::TCPConnection::initiateExtendedHandshake(), dtn::streams::operator<<(), operator=(), dtn::streams::operator>>(), and dtn::net::TCPConnection::run().
uint16_t dtn::streams::StreamContactHeader::_keepalive |
Definition at line 65 of file StreamContactHeader.h.
Referenced by dtn::streams::StreamConnection::handshake(), dtn::streams::operator<<(), operator=(), and dtn::streams::operator>>().
EID dtn::streams::StreamContactHeader::_localeid |
Definition at line 63 of file StreamContactHeader.h.
Referenced by dtn::net::TCPConnection::eventConnectionDown(), getEID(), dtn::streams::operator<<(), operator=(), dtn::streams::operator>>(), and dtn::net::TCPConnection::run().