Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: poll <-> select



On Friday, March 8, 2002, at 01:31 PM, Martin-Gilles Lavoie wrote:

There's some code I need to port that contains calls to

poll

Although the man pages describe poll, it actually isn't available in current Darwin builds. I was directed to use

select

as a replacement. However, both these suckers are new territory to me. Can someone offer advises on wrapping select to act like poll, or on replacing poll altogether?

I haven't used poll() enough to be sure of the differences. I think they are fairly close, so that your program structure needn't change too much (but that's easy for me to say :-}). You might try to lay hands on a copy of Stevens's 1993 book "Advanced Programming in a Unix Environment" (Addison Wesley). Since some of this is new to you, this is a good general discussion of the job, and it has a couple of sections on poll() and select().

Regards,

Justin

--
/~\ The ASCII Justin C. Walker, Curmudgeon-at-Large
\ / Ribbon Campaign
X Help cure HTML Email
/ \
_______________________________________________
darwin-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-development
Do not post admin requests to the list. They will be ignored.

References: 
 >poll <-> select (From: Martin-Gilles Lavoie <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.