Mailing Lists: Apple Mailing Lists

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

<no subject>



In the SUN world "select" and "the Berkeley sockets suite" are supposedly
emulated under the hood using TLI.

poll is supposedly used in implementing the "emulation" for select...

I guess I have always assumed that meant you could use them fairly
interchangeably.. Taking into account the differences in the api and
side-effects in various scenarios...

I've always preferred "select"... But I guess with TLI you get the added
benefit by way of some of Sys V extensions..

If you can get it I would start with Steven's original UNIX Network
Programming and then work into the multi-volume sets... He gives you a lot
of good information in one book... Later one he divides it into several...
$$$...LOL

Albeit some info in the old book is dated...

-- pwb


>On Friday, March 8, 2002, at 15:10:12 PM, Justin C. Walker wrote:
>
> 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
_______________________________________________
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.



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.