Socket Blocking problem

Erik Max Francis max at
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 ( in Python)?

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

More information about the Python-list mailing list