28 ResolverInfo info(
hostname() ,
"0" ) ;
32 return info.address() ;
35 std::string GNet::Local::fqdnImp()
37 ResolverInfo info(
hostname() ,
"0" ) ;
41 G_DEBUG(
"GNet::Local::fqdnImp: \"" << info.name() <<
"\"" ) ;
static std::string hostname()
Returns the hostname.
The Address class encapsulates an IP transport address.
std::string hostname()
Returns the hostname.
static std::string resolve(ResolverInfo &host_and_service, bool udp=false)
Does syncronous name resolution.