• 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: Read-Timeout with Blocking Socket
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Read-Timeout with Blocking Socket


  • Subject: Re: Read-Timeout with Blocking Socket
  • From: Josh Graessley <email@hidden>
  • Date: Tue, 20 Feb 2007 11:06:35 -0800


select is so yesterday. Check out kqueue.

-josh

On Feb 19, 2007, at 5:23 AM, Colin Hirsch wrote:

On Sun, Feb 18, 2007 at 04:51:38PM -0600, Marc Epard wrote:
Call select with a timeout, then, depending on what select returns,
call read.

Select() is infinitely better than alarm or setitimer, but I would recommund poll() rather than select(), if possible -- on most systems it's faster, and I believe that it's also easier to use.

Regards, Colin
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40apple.com


This email sent to email@hidden

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Read-Timeout with Blocking Socket (From: Mark Gilbert <email@hidden>)
 >Re: Read-Timeout with Blocking Socket (From: Marc Epard <email@hidden>)
 >Re: Read-Timeout with Blocking Socket (From: Colin Hirsch <email@hidden>)

  • Prev by Date: Re: X-compling on intel for 10.3 PPC
  • Next by Date: netstat vs. Network Utility
  • Previous by thread: Re: Read-Timeout with Blocking Socket
  • Next by thread: -mmacosx-version-min and MACOSX_DEPLOYMENT_TARGET
  • Index(es):
    • Date
    • Thread