[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: [PATCH] socket stuff
From:       Malte Starostik <malte () kde ! org>
Date:       2002-02-10 23:17:54
[Download RAW message or body]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am Sonntag, 10. Februar 2002 21:11:21 schrieb Thiago Macieira:
> Yea, it's me again.
>
> I've been doing my late homework and I've found out a couple of unwanted
> uses of sockets in kdelibs and kdebase:
>
> kdelibs/kio/misc/kpac:
> Uses gethostbyname(), but doesn't link to libkdecore (only libkjs). Can't
> fix it for now.
It does link to kdecore.
I'm not sure how to do it the Right Way though, there are two uses of 
gethostbyname():

One is supposed to be used from the proxy script and according to Netscape's 
PAC documentation it is supposed to return a dotted quad or undefined if the 
host doesn't resolve. So, I'm not sure how any of the scripts out there will 
react should that function return an IPv6 address...

The other use is in kpac_dhcp_helper, which is used for DHCP based automatic 
proxy discovery. This protocol is also only defined for IPv4 (I don't know if 
there is something like DHCP for IPv6, but here it's definately not 
supported) - the address returned by gethostbyname() is used as the client 
address sent to the DHCP server, and the message sent there has strict 4 
bytes for the IP
- -- 
Malte Starostik
PGP: 1024D/D2F3C787 [C138 2121 FAF3 410A 1C2A  27CD 5431 7745 D2F3 C787]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8Zv+lVDF3RdLzx4cRAtmrAJ0VqaUH3zO2oAOpPfATJZyrSTgRawCfRHny
Z4eHdbNMNkhT3THX9dLoxIw=
=Rk5H
-----END PGP SIGNATURE-----

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic