On 2007.10.22, Andrew Piskorski <[EMAIL PROTECTED]> wrote: > But, why call these non-thread-safe functions there, rather than > Ns_GetAddrByHost() and Ns_GetHostByAddr()?
Good question! Without looking too deeply at the code, the two functions you reference uses mutexes and caches--things that I don't believe are initialized at the early time of Ns_DriverInit's invoking. I haven't actually researched this, so I could be totally wrong. > Alos, if we do keep the use of gethostbyname(), ideally someone would > add a comment saying why, and that it's safe, like Dossy explained in > that old ticket. Feel free to copy my explanation into the source as a comment, if you feel it's valuable to do so. -- Dossy -- Dossy Shiobara | [EMAIL PROTECTED] | http://dossy.org/ Panoptic Computer Network | http://panoptic.com/ "He realized the fastest way to change is to laugh at your own folly -- then you can let go and quickly move on." (p. 70) -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> with the body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of your email blank.