• 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: David Rio Vierra <email@hidden>
  • Date: Mon, 30 Dec 2002 00:22:24 -1000

This is probably the worst idea in the history of threaded programming, but have you considered implementing the timeout yourself by running gethostbyaddr() in a second thread, having your first thread sleep for a while, then kill the second if it hasn't found the hostent?

On Monday, December 30, 2002, at 12:09 AM, Philip George wrote:

I'm using gethostbyaddr() right now, but I'm open for any straight-C suggestions. I must set a quicker timeout on the lookup. The default timeout is way too long for gethostbyaddr().

Thanks.

- Philip
_______________________________________________
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.
_______________________________________________
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.

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

  • Prev by Date: Re: NSSound broken in 10.2?
  • Next by Date: Re: passing pointers
  • Previous by thread: straight-C DNS lookup with timeout?
  • Next by thread: Re: straight-C DNS lookup with timeout?
  • Index(es):
    • Date
    • Thread