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

PString PIPSocket::GetLocalHostName (  )  [inherited]

Get the host name for the local host.

Returns:
Name of the host, or an empty string if an error occurs.

Definition at line 1919 of file sockets.cxx.

References PString::Empty(), PIPSocket::GetHostName(), and PIPSocket::GetLocalAddress().

{
  Address addr;

  if (GetLocalAddress(addr))
    return GetHostName(addr);

  return PString::Empty();
}


Generated by  Doxygen 1.6.0   Back to index