IBR-DTNSuite
0.8
|
#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 } |
Public Member Functions | |
StreamContactHeader () | |
StreamContactHeader (EID localeid) | |
virtual | ~StreamContactHeader () |
StreamContactHeader & | operator= (const StreamContactHeader &other) |
const EID | getEID () const |
Public Attributes | |
EID | _localeid |
char | _flags |
u_int16_t | _keepalive |
Friends | |
std::ostream & | operator<< (std::ostream &stream, const StreamContactHeader &h) |
std::istream & | operator>> (std::istream &stream, StreamContactHeader &h) |
Definition at line 27 of file StreamContactHeader.h.
REQUEST_ACKNOWLEDGMENTS | |
REQUEST_FRAGMENTATION | |
REQUEST_NEGATIVE_ACKNOWLEDGMENTS | |
REQUEST_TLS |
Definition at line 30 of file StreamContactHeader.h.
Definition at line 21 of file StreamContactHeader.cpp.
Definition at line 26 of file StreamContactHeader.cpp.
dtn::streams::StreamContactHeader::~StreamContactHeader | ( | ) | [virtual] |
Definition at line 31 of file StreamContactHeader.cpp.
const EID dtn::streams::StreamContactHeader::getEID | ( | ) | const |
Definition at line 43 of file StreamContactHeader.cpp.
References _localeid.
Referenced by dtn::net::TCPConnection::eventConnectionUp().
StreamContactHeader & dtn::streams::StreamContactHeader::operator= | ( | const StreamContactHeader & | other | ) |
Definition at line 35 of file StreamContactHeader.cpp.
References _flags, _keepalive, and _localeid.
std::ostream& operator<< | ( | std::ostream & | stream, |
const StreamContactHeader & | h | ||
) | [friend] |
Definition at line 48 of file StreamContactHeader.cpp.
std::istream& operator>> | ( | std::istream & | stream, |
StreamContactHeader & | h | ||
) | [friend] |
Definition at line 63 of file StreamContactHeader.cpp.
Definition at line 48 of file StreamContactHeader.h.
Referenced by dtn::net::TCPConnection::eventConnectionUp(), dtn::streams::StreamConnection::handshake(), dtn::streams::operator<<(), operator=(), dtn::streams::operator>>(), and dtn::net::operator>>().
Definition at line 49 of file StreamContactHeader.h.
Referenced by dtn::net::TCPConnection::eventConnectionUp(), dtn::streams::StreamConnection::handshake(), dtn::streams::operator<<(), operator=(), and dtn::streams::operator>>().
Definition at line 47 of file StreamContactHeader.h.
Referenced by dtn::net::TCPConnection::eventConnectionDown(), dtn::api::BinaryStreamClient::eventConnectionUp(), dtn::net::TCPConnection::eventConnectionUp(), getEID(), dtn::streams::operator<<(), operator=(), dtn::streams::operator>>(), and dtn::net::TCPConnection::run().