libktorrent  2.1.1
Signals | Public Member Functions | Static Public Member Functions | List of all members
net::ReverseResolver Class Reference

#include <reverseresolver.h>

Inheritance diagram for net::ReverseResolver:
Inheritance graph
[legend]

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.
 

Detailed Description

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 59 of file reverseresolver.h.

Member Function Documentation

◆ resolve()

QString net::ReverseResolver::resolve ( const net::Address addr)

Resolve an ip address synchronously.

◆ resolveAsync()

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.

Parameters
addrThe address

◆ run()

void net::ReverseResolver::run ( )

Run the actual resolve and emit the signal when done


The documentation for this class was generated from the following file: