Stopping a socket.accept() method

Tobias Pfeiffer me at privacy.net
Mon Aug 16 15:18:44 EDT 2004


Hi!

On 16 Aug 2004, Peter Hansen wrote:

> Tobias Pfeiffer wrote:
>
> 2. You can use a non-blocking socket and select(), which
> will allow a periodic wakeup to check a flag that is set
> by whatever mechanism you want to tell the prog to stop.

And how exactly do you propose to code this "non-blocking socket"? I've 
no idea how to realize that? Could you maybe give me a little example of 
how to work with socket.accept() and select()?

Bye
Tobias

-- 
please send any mail to botedesschattens(at)web(dot)de



More information about the Python-list mailing list