IBR-DTNSuite 0.6

dtn::core::Node::URI Class Reference

#include <Node.h>

List of all members.

Public Member Functions

 URI (const Type t, const Protocol proto, const std::string &uri, const size_t timeout=0)
 ~URI ()
void decode (std::string &address, unsigned int &port) const
bool operator< (const URI &other) const
bool operator== (const URI &other) const
bool operator== (const Node::Protocol &p) const
bool operator== (const Node::Type &t) const

Public Attributes

const Type type
const Protocol protocol
const std::string value
const size_t expire

Friends

std::ostream & operator<< (std::ostream &, const Node::URI &)

Detailed Description

Definition at line 50 of file Node.h.


Constructor & Destructor Documentation

dtn::core::Node::URI::URI ( const Type  t,
const Protocol  proto,
const std::string &  uri,
const size_t  timeout = 0 
)

Definition at line 16 of file Node.cpp.

dtn::core::Node::URI::~URI ( )

Definition at line 21 of file Node.cpp.


Member Function Documentation

void dtn::core::Node::URI::decode ( std::string &  address,
unsigned int &  port 
) const

Definition at line 25 of file Node.cpp.

References dtn::utils::Utils::tokenize().

Referenced by dtn::net::UDPConvergenceLayer::queue(), dtn::net::LOWPANConvergenceLayer::queue(), and dtn::net::TCPConnection::setup().

Here is the call graph for this function:

bool dtn::core::Node::URI::operator< ( const URI other) const

Definition at line 51 of file Node.cpp.

References protocol, type, and value.

bool dtn::core::Node::URI::operator== ( const Node::Protocol p) const

Definition at line 67 of file Node.cpp.

bool dtn::core::Node::URI::operator== ( const URI other) const

Definition at line 62 of file Node.cpp.

References protocol, type, and value.

bool dtn::core::Node::URI::operator== ( const Node::Type t) const

Definition at line 72 of file Node.cpp.


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  stream,
const Node::URI u 
) [friend]

Definition at line 77 of file Node.cpp.


Member Data Documentation

Definition at line 59 of file Node.h.

Referenced by dtn::core::Node::expire(), and dtn::core::operator<<().

Definition at line 57 of file Node.h.

Referenced by operator<(), dtn::core::operator<<(), and operator==().

Definition at line 56 of file Node.h.

Referenced by operator<(), dtn::core::operator<<(), and operator==().

const std::string dtn::core::Node::URI::value

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