IBR-DTNSuite  0.8
dtn::streams::StreamContactHeader Class Reference

#include <StreamContactHeader.h>

Collaboration diagram for dtn::streams::StreamContactHeader:

List of all members.

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 ()
StreamContactHeaderoperator= (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)

Detailed Description

Definition at line 27 of file StreamContactHeader.h.


Member Enumeration Documentation

Enumerator:
REQUEST_ACKNOWLEDGMENTS 
REQUEST_FRAGMENTATION 
REQUEST_NEGATIVE_ACKNOWLEDGMENTS 
REQUEST_TLS 

Definition at line 30 of file StreamContactHeader.h.


Constructor & Destructor Documentation


Member Function Documentation

StreamContactHeader & dtn::streams::StreamContactHeader::operator= ( const StreamContactHeader other)

Definition at line 35 of file StreamContactHeader.cpp.

References _flags, _keepalive, and _localeid.


Friends And Related Function Documentation

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.


Member Data Documentation


The documentation for this class was generated from the following files: