Logo Search packages:      
Sourcecode: pwlib version File versions  Download package

PString PIPSocket::GetHostName ( const Address addr  )  [static, inherited]

Parameters:
addr  Hosts IP address to get name for

Definition at line 1770 of file sockets.cxx.

References PIPSocket::Address::AsString(), and PIPSocket::GetHostName().

{
  if (addr == 0)
    return addr.AsString();

  PString hostname;
  if (pHostByAddr().GetHostName(addr, hostname))
    return hostname;

  return addr.AsString();
}


Generated by  Doxygen 1.6.0   Back to index