On Tue, 2003-07-08 at 08:59, Wez Furlong wrote: > FYI: gethostbyname() is thread-safe under win32.
I thought so but wasn't sure > I have some code hanging around in my libwstreams repository > that implements getaddrinfo() using all the possible variations > of gethostbyname() or gethostbyname_r() (there are 3 possible > prototypes accepting 3, 5 or 6 parameters respectively!) for > IPV4 only systems. > > I will be merging it into PHP once I've tidied it up fully, and > it should make for some nice readable resolving code at last. sounds good -Jason > --Wez. > > > ----- Original Message ----- > From: "Jason Greene" <[EMAIL PROTECTED]> > To: "Sascha Schumann" <[EMAIL PROTECTED]> > Cc: "Sara Golemon" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> > Sent: Tuesday, July 08, 2003 2:22 PM > Subject: Re: [PHP-CVS] cvs: php-src /ext/sockets sockets.c > > > > On Tue, 2003-07-08 at 08:15, Sascha Schumann wrote: > > > On Tue, 8 Jul 2003, Jason Greene wrote: > > > > > > > If the platform supports gethostbyname_r(most i know do), that is > thread > > > > safe. > > > > > > Note the "2" in the name. > > > > > > - Sascha > > I should have been more specific, we should change the ipv4 resolver > > code in sockets to use either getaddrinfo or gethostbyname_r, as it is > > currently not thread safe. > > > > The Ipv6 resolver code should just always use getaddrinfo > > > > -Jason -- Jason Greene <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php