#include <addressresolver.h>
|
static net::Address | resolve (const QString &host, bt::Uint16 port) |
|
static void | resolve (const QString &host, bt::Uint16 port, QObject *parent, const char *slot) |
|
Resolves hostnames into net::Address objects. This class will clean itself up, after it is done using deleteLater.
Definition at line 54 of file addressresolver.h.
◆ AddressResolver()
net::AddressResolver::AddressResolver |
( |
const QString & |
host, |
|
|
bt::Uint16 |
port, |
|
|
QObject * |
parent, |
|
|
const char * |
slot |
|
) |
| |
Constructor, initializer the lookup.
- Parameters
-
host | Hostname |
port | Port number |
parent | Parent |
slot | Slot of parent to connect to |
◆ resolve() [1/2]
static net::Address net::AddressResolver::resolve |
( |
const QString & |
host, |
|
|
bt::Uint16 |
port |
|
) |
| |
|
static |
Synchronous resolve
- Parameters
-
host | Hostname |
port | Port number |
- Returns
- :Address
◆ resolve() [2/2]
static void net::AddressResolver::resolve |
( |
const QString & |
host, |
|
|
bt::Uint16 |
port, |
|
|
QObject * |
parent, |
|
|
const char * |
slot |
|
) |
| |
|
static |
Convenience method to resolve a hostname.
- Parameters
-
host | Hostname
|
port | Port number |
parent | Parent |
slot | Slot of parent to connect to |
- Returns
- void
◆ resolved
Emitted when hostname lookup succeeded
- Parameters
-
The documentation for this class was generated from the following file: