• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: straight-C DNS lookup with timeout?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: straight-C DNS lookup with timeout? (From: Philip George <email@hidden>)

  • Prev by Date: Internet programming, point me?
  • Next by Date: Re: Internet programming, point me?
  • Previous by thread: Re: straight-C DNS lookup with timeout?
  • Next by thread: Re: straight-C DNS lookup with timeout?
  • Index(es):
    • Date
    • Thread