Socket Blocking problem

Erik Max Francis max at alcyone.com
Fri Jan 3 11:52:09 CET 2003


sree wrote:

> I am writing a small socket program in python. Here there are two
> progs. One
> sits on system A and accepts connections, does something with the data
> that
> came in. Othe sits on system B and sends commands to system A. Problem
> is I
> want to be able to read if system A is busy or free from system B.
> Hence I
> tried setblocking(0) but then it fails to start with error as below on
> system A.

Have you tried using select (select.select in Python)?

-- 
 Erik Max Francis / max at alcyone.com / http://www.alcyone.com/max/
 __ San Jose, CA, USA / 37 20 N 121 53 W / &tSftDotIotE
/  \ Then conquer we must, for our cause is just ...
\__/ Francis Scott Key
    Fauxident / http://www.alcyone.com/pyos/fauxident/
 A "faux" ident daemon in Python.




More information about the Python-list mailing list