Detecting hostname == localhost?

Michael Goffioul goffioul at
Fri Sep 13 12:37:35 BST 2002

>  I have no idea how to handle the IP itself without an actual gethostbyaddr()
> call, but I don't expect anybody using that as the hostname for localhost.

The string is not coming from the user, but from the CUPS server
(actually, from the printer URI), and can then be anything: in my case
for example, it's an IP address.


Michael Goffioul		IMEC-DESICS-MIRA
e-mail: goffioul at	(Mixed-Signal and RF Applications)
Tel:    +32/16/28-8510		Kapeldreef, 75
Fax:    +32/16/28-1515		3001 HEVERLEE, BELGIUM

More information about the kde-core-devel mailing list