The Host Address class this is wrapper of QHostAddress. Contains the NetworkAddress and network port.
More...
#include <hostaddress.h>
|
static bool | isIP (const QString &address) |
| isIP This method return true if the address is valid.
|
|
The Host Address class this is wrapper of QHostAddress. Contains the NetworkAddress and network port.
Definition at line 21 of file hostaddress.h.
◆ HostAddress() [1/5]
QH::HostAddress::HostAddress |
( |
| ) |
|
|
explicit |
◆ HostAddress() [2/5]
QH::HostAddress::HostAddress |
( |
const QHostAddress & |
other, |
|
|
int |
port = DEFAULT_PORT |
|
) |
| |
|
explicit |
◆ HostAddress() [3/5]
QH::HostAddress::HostAddress |
( |
const QString & |
other, |
|
|
int |
port = DEFAULT_PORT |
|
) |
| |
|
explicit |
◆ HostAddress() [4/5]
QH::HostAddress::HostAddress |
( |
const SpecialAddress & |
other, |
|
|
int |
port = DEFAULT_PORT |
|
) |
| |
◆ HostAddress() [5/5]
QH::HostAddress::HostAddress |
( |
const HostAddress & |
other | ) |
|
◆ fromBytes()
bool QH::HostAddress::fromBytes |
( |
const QByteArray & |
array | ) |
|
fromBytes This method applay array obejct. (conver a byte array to a newtwork address object)
- Parameters
-
array | this is input array. |
- Returns
- true if array applayed successfull
Definition at line 71 of file hostaddress.cpp.
◆ isIP()
bool QH::HostAddress::isIP |
( |
const QString & |
address | ) |
|
|
static |
isIP This method return true if the address is valid.
address This is tring value of the network ip address.
- Returns
- true if the address is valid.
Definition at line 52 of file hostaddress.cpp.
◆ isValid()
bool QH::HostAddress::isValid |
( |
| ) |
const |
isValid This method return true if the current network address is valid.
- Returns
- true if the current network address is valid.
Definition at line 56 of file hostaddress.cpp.
◆ operator=()
◆ port()
unsigned short QH::HostAddress::port |
( |
| ) |
const |
The port method return port of node.
- Returns
- port of node.
Definition at line 37 of file hostaddress.cpp.
◆ setPort()
void QH::HostAddress::setPort |
( |
unsigned short |
port | ) |
|
setPort This method set new port value.
- Parameters
-
port | This is new value of port. |
Definition at line 41 of file hostaddress.cpp.
◆ toBytes()
QByteArray QH::HostAddress::toBytes |
( |
| ) |
const |
toBytes This method convert a network address to a byte array.
- Returns
- byte array implementation of this object.
Definition at line 64 of file hostaddress.cpp.
◆ toString()
QString QH::HostAddress::toString |
( |
| ) |
const |
toString this method convert the Host Address value to string value.
- Returns
- string value of the HostAddress object.
Definition at line 60 of file hostaddress.cpp.
◆ operator!=
bool & operator!= |
( |
QDataStream & |
stream, |
|
|
HostAddress & |
address |
|
) |
| |
|
friend |
◆ operator<<
QDataStream & operator<< |
( |
QDataStream & |
stream, |
|
|
const HostAddress & |
address |
|
) |
| |
|
friend |
◆ operator==
bool & operator== |
( |
QDataStream & |
stream, |
|
|
HostAddress & |
address |
|
) |
| |
|
friend |
◆ operator>>
QDataStream & operator>> |
( |
QDataStream & |
stream, |
|
|
HostAddress & |
address |
|
) |
| |
|
friend |
The documentation for this class was generated from the following files: