IBR-DTNSuite  0.8
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, const int priority=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
const int priority

Friends

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

Detailed Description

Definition at line 56 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,
const int  priority = 0 
)

Definition at line 16 of file Node.cpp.

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::TCPConnection::connect(), dtn::net::LOWPANConvergenceLayer::queue(), and dtn::net::UDPConvergenceLayer::queue().

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 URI other) const

Definition at line 62 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 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 65 of file Node.h.

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

Definition at line 66 of file Node.h.

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

Definition at line 63 of file Node.h.

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

Definition at line 62 of file Node.h.

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


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