VideoTools
|
Address a = f.get().first ;. More...
Public Types | |
typedef std::pair< Address, std::string > | Pair |
typedef std::vector< Address > | List |
Address a = f.get().first ;.
A 'future' object for asynchronous name resolution, in practice holding just enough state for a single call to getaddrinfo().
The run() method can be called from a worker thread and the results collected by the main thread with get() once the run() has finished.
Signalling completion from worker thread to main thread is out of scope for this class; see GNet::FutureEvent.
Eg:
Definition at line 73 of file gresolver.cpp.