Re: Read-Timeout with Blocking Socket
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com User-agent: Mutt/1.5.9i 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 (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com
participants (1)
-
Colin Hirsch