Detecting hostname == localhost?

Oswald Buddenhagen ossi at
Fri Sep 13 15:20:44 BST 2002

On Fri, Sep 13, 2002 at 12:59:52PM +0200, Michael Goffioul wrote:
> That's not what I meant. Imagine you're working on a computer named
> "" with the given IP "", I want to check
> if strings like:
> myhost
> corresponds to localhost, it means the computer you're working on.
then say "local host", not "localhost". ;-)
anyway, you want to find all local ip addresses of the box. see
kdm/backend/auth.c or kdm/chooser/CXdmcp.cpp (or kdm/backend/choose.c in
the make_it_cool branch).


Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
Chaos, panic, and disorder - my work here is done.

More information about the kde-core-devel mailing list