How do I check if Telnet session is open?

Irmen de Jong irmen at -nospam-remove-this-xs4all.nl
Wed Oct 20 19:45:04 EDT 2004


Irmen de Jong wrote:
> The select call waits until you can *write* to the sockets.
> It should read:
> 
> w, r, e = select.select([sock, sock2], [], [] )

Darn, I forgot to switch the w,r around too. It must be:

r, w, e = select.select([sock, sock2], [], [] )


--Irmen



More information about the Python-list mailing list