libktorrent
2.2.0
|
#include <reverseresolver.h>
Signals | |
void | resolved (const QString &host) |
Emitted when the resolution is complete. | |
Public Member Functions | |
ReverseResolver (QObject *parent=0) | |
QString | resolve (const net::Address &addr) |
void | resolveAsync (const net::Address &addr) |
void | run () |
Static Public Member Functions | |
static void | shutdown () |
Shutdown the worker thread. | |
Resolve an IP address into a hostname This should be threated as fire and forget objects, when using them asynchronously. The worker thread will delete them, when they are done.
Definition at line 41 of file reverseresolver.h.
QString net::ReverseResolver::resolve | ( | const net::Address & | addr | ) |
Resolve an ip address synchronously.
void net::ReverseResolver::resolveAsync | ( | const net::Address & | addr | ) |
Resolve an ip address asynchronously, uses the worker thread Connecting to the resolved signal should be done with Qt::QueuedConnection, seeing that it will be emitted from the worker thread.
addr | The address |
void net::ReverseResolver::run | ( | ) |
Run the actual resolve and emit the signal when done