Detecting hostname == localhost?

Oswald Buddenhagen ossi at kde.org
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
> "myhost.mydomain.com" with the given IP "165.89.3.54", I want to check
> if strings like:
> 
> myhost
> myhost.mydomain.com
> 165.89.3.54
> 
> 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).

greetings

-- 
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