34 m_callback(callback) ,
35 m_exception_handler(exception_handler) ,
48 Address address( location.host() ,
G::Str::toUInt(location.service()) ) ;
49 location.update( address , std::string() ) ;
50 return std::string() ;
52 catch( std::exception & e )
54 return "invalid address" ;
61 throw std::runtime_error(
"not implemented" ) ;
void start(const Location &)
Starts asynchronous name-to-address resolution.
static unsigned int toUInt(const std::string &s)
Converts string 's' to an unsigned int.
static bool async()
Returns true if the resolver supports asynchronous operation.
bool busy() const
Returns true if there is a pending resolve request.
static std::string resolve(Location &)
Does synchronous name resolution.
Resolver(Callback &, ExceptionHandler &)
Constructor taking a callback interface reference.
A private "pimple" implementation class used by GNet::Resolver to do asynchronous name resolution...