Re: straight-C DNS lookup with timeout?
Re: straight-C DNS lookup with timeout?
- Subject: Re: straight-C DNS lookup with timeout?
- From: Andrew <email@hidden>
- Date: Fri, 3 Jan 2003 15:26:06 +1100 (EST)
On Thu, 2 Jan 2003, Philip George wrote:
>
gethostbyaddr_r(). Has anyone done this already or seen it somewhere
>
online?
The simple method to implement gethostbyaddr_r is:
lock();
gethostbyaddr();
unlock();
Not pretty but very easy.
I haven't looked but I would imagine the only thing that stops
gethostbyaddr from being thread safe is its use of static storage so you
can probably just steal its code and pass in the storage it uses as an
argument.
Andrew
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.