Re: output events on select
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.python archive

Re: output events on select

From: Piet van Oostrum <piet@cs.uu.nl>
Date: Sun Oct 02 2005 - 18:59:45 CEST

>>>>> "Tor Erik Sønvisen" <tores@stud.cs.uit.no> (TES) wrote:

>TES> When using select, what exactly will trigger an output-event? I have
>TES> a socket registered in the output-list of the select but an
>TES> output-event is never generated for that socket. I know the socket is
>TES> ready to send data, so how can I make select return with an
>TES> output-event?

It is better to talk about status than event. The select should return the
socket in the ready set for write when a write on that socket can be done
without blocking. So if it doen't return it then something is wrong. This
is on Unix systems, by the way. On Windows things might be different.

-- 
Piet van Oostrum <piet@cs.uu.nl>
URL: http://www.cs.uu.nl/~piet [PGP 8DAE142BE17999C4]
Private email: piet@vanoostrum.org
Received on Sat Oct 15 04:03:15 2005