#include <NodeID.h>
Collaboration diagram for NodeID:

Public Member Functions | |
| NodeID (const std::string &ID) | |
| Constructor. | |
| NodeID (const std::string &hostname, int listenPort) | |
| Constructor for hostname and listen ports. | |
| NodeID (const NodeID &rhs) | |
| copy constructor | |
| const NodeID & | operator= (const NodeID &rhs) |
| Assignment operator. | |
| operator std::string () const | |
| Implicit conversion operator to std::string. | |
| operator const char * () const | |
| Implicit conversion operator to std::string. | |
| const std::string & | getID () const |
| Explicit conversion to a string object. | |
| const std::string & | getHostname () const |
| Get the hostname portion of this object. | |
| int | getListenPort () const |
| Get the listen port portion of this object. | |
| bool | operator== (const NodeID &rhs) const |
| equality operator | |
| bool | operator!= (const NodeID &rhs) const |
| inequality operator | |
| bool | operator< (const NodeID &rhs) const |
| less than operator | |
Private Attributes | |
| std::string | ID_ |
| std::string | hostname_ |
| int | listenPort_ |
Friends | |
| std::ostream & | operator<< (std::ostream &output, const NodeID &_node) |
| ostream operator | |
handles Fountain node identifcation in the form of hostname_listenport where hostname is the hostname truncated to the first period and listenport is the listening socket number that the Fountain node is using to accept new connections.
Definition at line 28 of file NodeID.h.
|
|
Constructor.
Definition at line 53 of file NodeID.cpp. References ENFORCE, std::basic_string< _CharT, _Traits, _Alloc >::find_first_of(), hostname_, ID_, listenPort_, std::basic_string< _CharT, _Traits, _Alloc >::size(), and std::basic_string< _CharT, _Traits, _Alloc >::substr(). Here is the call graph for this function: ![]() |
|
||||||||||||
|
Constructor for hostname and listen ports.
Definition at line 28 of file NodeID.cpp. References std::basic_string< _CharT, _Traits, _Alloc >::append(), std::basic_string< _CharT, _Traits, _Alloc >::c_str(), hostname, hostname_, ID_, listenPort_, and logger. Here is the call graph for this function: ![]() |
|
|
Get the hostname portion of this object.
Definition at line 89 of file NodeID.h. Referenced by FountainWireProt::Connect(), FountainNode::FountainNode(), TreeNode::getHostname(), FountainNodes::Statistics::parseNodeInfoElement(), and FountainServer::processNodeQueryResponse(). |
|
|
Get the listen port portion of this object.
Definition at line 95 of file NodeID.h. Referenced by FountainWireProt::Connect(), FountainNode::FountainNode(), and TreeNode::getListenPort(). |
|
|
inequality operator
Definition at line 109 of file NodeID.h. References ID_. |
|
|
less than operator
Definition at line 116 of file NodeID.h. References ID_. |
|
|
equality operator
Definition at line 102 of file NodeID.h. References ID_. |
|
|
The hostname Definition at line 38 of file NodeID.h. Referenced by NodeID(), and operator=(). |
|
|
The ID in the form of hostname_port Definition at line 33 of file NodeID.h. Referenced by NodeID(), operator std::string(), operator!=(), operator<(), operator<<(), operator=(), and operator==(). |
|
|
The listen port Definition at line 43 of file NodeID.h. Referenced by NodeID(), and operator=(). |
1.4.6