Re: non-blocking sockets: poll() or select()?
From: Simon Elliott (Simon)
Date: 09/30/05
- Next message: Maxim Yegorushkin: "Re: encoding sting in UNIX environment using Windows codepage 1252..?"
- Previous message: Vinu: "encoding sting in UNIX environment using Windows codepage 1252..?"
- In reply to: Maxim Yegorushkin: "Re: non-blocking sockets: poll() or select()?"
- Next in thread: Maxim Yegorushkin: "Re: non-blocking sockets: poll() or select()?"
- Reply: Maxim Yegorushkin: "Re: non-blocking sockets: poll() or select()?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 30 Sep 2005 10:44:25 GMT
On 30/09/2005, Maxim Yegorushkin wrote:
> > I'm designing some code which will use non blocking sockets. The
> > code uses a single socket. Is it better to use poll() or select()
> > for this, or isn't there much to choose between them?
>
> poll() does not impose the maximum discriptor count it can handle like
> select() does, and code with poll() looks somewhat less clumsy.
poll(0 also allows a bit more granularity of events. Can I set the
timeout to zero?
-- Simon Elliott http://www.ctsn.co.uk
- Next message: Maxim Yegorushkin: "Re: encoding sting in UNIX environment using Windows codepage 1252..?"
- Previous message: Vinu: "encoding sting in UNIX environment using Windows codepage 1252..?"
- In reply to: Maxim Yegorushkin: "Re: non-blocking sockets: poll() or select()?"
- Next in thread: Maxim Yegorushkin: "Re: non-blocking sockets: poll() or select()?"
- Reply: Maxim Yegorushkin: "Re: non-blocking sockets: poll() or select()?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|