IBR-DTNSuite  0.8
dtn::routing::NodeHandshake Class Reference

#include <NodeHandshake.h>

List of all members.

Classes

class  StreamMap

Public Types

enum  MESSAGE_TYPE { HANDSHAKE_INVALID = 0, HANDSHAKE_REQUEST = 1, HANDSHAKE_RESPONSE = 2 }

Public Member Functions

 NodeHandshake ()
 NodeHandshake (MESSAGE_TYPE type, size_t lifetime=60)
virtual ~NodeHandshake ()
void addRequest (const size_t identifier)
bool hasRequest (const size_t identifier) const
void addItem (NodeHandshakeItem *item)
bool hasItem (const size_t identifier) const
size_t getType () const
size_t getLifetime () const
template<class T >
T & get ()

Friends

std::ostream & operator<< (std::ostream &, const NodeHandshake &)
std::istream & operator>> (std::istream &, NodeHandshake &)

Detailed Description

Definition at line 77 of file NodeHandshake.h.


Member Enumeration Documentation

Enumerator:
HANDSHAKE_INVALID 
HANDSHAKE_REQUEST 
HANDSHAKE_RESPONSE 

Definition at line 80 of file NodeHandshake.h.


Constructor & Destructor Documentation

dtn::routing::NodeHandshake::NodeHandshake ( MESSAGE_TYPE  type,
size_t  lifetime = 60 
)

Definition at line 19 of file NodeHandshake.cpp.

Definition at line 24 of file NodeHandshake.cpp.


Member Function Documentation

bool dtn::routing::NodeHandshake::hasItem ( const size_t  identifier) const

Definition at line 55 of file NodeHandshake.cpp.

References dtn::routing::NodeHandshakeItem::getIdentifier().

Here is the call graph for this function:


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  stream,
const NodeHandshake hs 
) [friend]

Definition at line 87 of file NodeHandshake.cpp.

std::istream& operator>> ( std::istream &  stream,
NodeHandshake hs 
) [friend]

Definition at line 134 of file NodeHandshake.cpp.


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