#include <QHostAddress>
Go to the source code of this file.
Functions | |
QHostAddress | net_local_address () |
bool | net_is_private_address (QHostAddress addr) |
bool | net_is_valid_ip (QString ip) |
bool | net_get_public_ip (QString &ip) |
bool | net_test_connect (QHostAddress host, quint16 port, int timeout=250) |
Definition in file net.h.
bool net_get_public_ip | ( | QString & | ip | ) |
Tries to determine this machine's external IP.
Asks a pre-defined list of servers what they think this machine's public IP address is.
ip | Stores the ip after a successful request |
Definition at line 97 of file net.cpp.
References get_check_ip_sites(), and net_is_valid_ip().
bool net_is_private_address | ( | QHostAddress | addr | ) |
bool net_is_valid_ip | ( | QString | ip | ) |
QHostAddress net_local_address | ( | ) |
bool net_test_connect | ( | QHostAddress | host, | |
quint16 | port, | |||
int | timeout | |||
) |