#include <NodeAddress.h> [code]
Collaboration diagram for Protocols::Transports::NodeAddress:

A NodeAddress object can store host name or a host address (IP) and a port. If the host name is set, then the IP address is null. If the IP address is set, then the hostname is null. The Connection classes would know what to do in each case.
Definition at line 46 of file NodeAddress.h.
Public Member Functions | |
| NodeAddress (const QHostAddress &hostAddress=QHostAddress::Null, quint16 hostPort=0) | |
| NodeAddress (const QString &hostName, quint16 hostPort) | |
| NodeAddress (const QString &hostNameAndPort) | |
| Constructs a NodeAddress from a string. | |
| ~NodeAddress () | |
| bool | operator== (const NodeAddress &nodeAddress) const |
| bool | operator!= (const NodeAddress &nodeAddress) const |
| bool | operator< (const NodeAddress &nodeAddress) const |
| bool | isNull () const |
| QString | hostName () const |
| QHostAddress | hostAddress () const |
| quint16 | hostPort () const |
| void | setHostName (const QString &hostName) |
| void | setHostAddress (const QHostAddress &hostAddress) |
| void | setHostPort (quint16 hostPort) |
| QString | toString () const |
Static Public Attributes | |
| static const NodeAddress | Null = NodeAddress() |
Private Attributes | |
| QString | hostName_ |
| QHostAddress | hostAddress_ |
| quint16 | hostPort_ |
|
||||||||||||
|
Definition at line 31 of file NodeAddress.cpp. |
|
||||||||||||
|
Definition at line 37 of file NodeAddress.cpp. |
|
|
Constructs a NodeAddress from a string. This constructor constructs a NodeAddress object by parsing the addressPortString. The following formats can now be parsed: domain_name:port IPv4_address:port (e.g. 192.168.0.1:1234)
Definition at line 53 of file NodeAddress.cpp. |
|
|
Definition at line 73 of file NodeAddress.cpp. |
|
|
Definition at line 96 of file NodeAddress.h. |
|
|
Definition at line 93 of file NodeAddress.h. |
|
|
Definition at line 99 of file NodeAddress.h. |
|
|
Definition at line 90 of file NodeAddress.h. |
|
|
Definition at line 87 of file NodeAddress.h. |
|
|
Definition at line 82 of file NodeAddress.cpp. |
|
|
Definition at line 77 of file NodeAddress.cpp. |
|
|
Definition at line 109 of file NodeAddress.h. |
|
|
Definition at line 103 of file NodeAddress.h. |
|
|
Definition at line 112 of file NodeAddress.h. |
|
|
Definition at line 93 of file NodeAddress.cpp. |
|
|
Definition at line 74 of file NodeAddress.h. |
|
|
Definition at line 73 of file NodeAddress.h. |
|
|
Definition at line 75 of file NodeAddress.h. |
|
|
Definition at line 70 of file NodeAddress.h. |