Re: to select() or poll() ??
- From: Casper H.S. Dik <Casper.Dik@xxxxxxx>
- Date: 13 Nov 2006 19:12:38 GMT
spambox1@xxxxxxxxxxxxxx writes:
Which asynchronous multiplexer is "recommended" to use, select() or
poll(). From the Solaris man pages, I read the following;
"The poll(2) function is preferred over this function. It must be
used when the number of file descriptors wxceeds FD_SETSIZE"
Linux offers in libevent a "call back" functionality for multiplexing
I/O desccriptors. Are these functions accepted as portable standard c
libraries?
poll(2) is a standard "POSIX" function. Solaris also has "/dev/poll"
(from S2.6 or 7) and event ports (starting in Solaris 10).
Noen of libevent, /dev/poll or event ports are standard.
Casper
--
Expressed in this posting are my opinions. They are in no way related
to opinions held by my employer, Sun Microsystems.
Statements on Sun products included here are not gospel and may
be fiction rather than truth.
.
- Follow-Ups:
- Re: to select() or poll() ??
- From: William Ahern
- Re: to select() or poll() ??
- References:
- to select() or poll() ??
- From: spambox1
- to select() or poll() ??
- Prev by Date: Re: Solaris 8 network programming problem
- Next by Date: Re: general autoconf question
- Previous by thread: to select() or poll() ??
- Next by thread: Re: to select() or poll() ??
- Index(es):
Relevant Pages
|