IBR-DTNSuite
0.8
|
#include <NodeHandshake.h>
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 &) |
Definition at line 77 of file NodeHandshake.h.
Definition at line 80 of file NodeHandshake.h.
Definition at line 14 of file NodeHandshake.cpp.
dtn::routing::NodeHandshake::NodeHandshake | ( | MESSAGE_TYPE | type, |
size_t | lifetime = 60 |
||
) |
Definition at line 19 of file NodeHandshake.cpp.
dtn::routing::NodeHandshake::~NodeHandshake | ( | ) | [virtual] |
Definition at line 24 of file NodeHandshake.cpp.
void dtn::routing::NodeHandshake::addItem | ( | NodeHandshakeItem * | item | ) |
Definition at line 50 of file NodeHandshake.cpp.
Referenced by dtn::routing::NodeHandshakeExtension::responseHandshake(), and dtn::routing::ProphetRoutingExtension::responseHandshake().
void dtn::routing::NodeHandshake::addRequest | ( | const size_t | identifier | ) |
Definition at line 40 of file NodeHandshake.cpp.
Referenced by dtn::routing::NodeHandshakeExtension::requestHandshake(), dtn::routing::EpidemicRoutingExtension::requestHandshake(), and dtn::routing::ProphetRoutingExtension::requestHandshake().
T & dtn::routing::NodeHandshake::get | ( | ) |
Definition at line 136 of file NodeHandshake.h.
Referenced by dtn::routing::NodeHandshakeExtension::processHandshake(), and dtn::routing::ProphetRoutingExtension::processHandshake().
size_t dtn::routing::NodeHandshake::getLifetime | ( | ) | const |
Definition at line 82 of file NodeHandshake.cpp.
Referenced by dtn::routing::NodeHandshakeExtension::processHandshake().
size_t dtn::routing::NodeHandshake::getType | ( | ) | const |
Definition at line 77 of file NodeHandshake.cpp.
Referenced by dtn::routing::NodeHandshakeExtension::processHandshake().
bool dtn::routing::NodeHandshake::hasItem | ( | const size_t | identifier | ) | const |
Definition at line 55 of file NodeHandshake.cpp.
References dtn::routing::NodeHandshakeItem::getIdentifier().
bool dtn::routing::NodeHandshake::hasRequest | ( | const size_t | identifier | ) | const |
Definition at line 45 of file NodeHandshake.cpp.
Referenced by dtn::routing::NodeHandshakeExtension::responseHandshake(), and dtn::routing::ProphetRoutingExtension::responseHandshake().
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.