How do I check if Telnet session is open?

Irmen de Jong irmen at
Thu Oct 21 00:37:22 CEST 2004

Mudcat wrote:
> Let me narrow the focus a little since I've found out how this is
> usually done. I'm attempting to solve the problem using select. However
> I can't get the select function to block until something's available.
> Here is my code. I am running on windows.
>>>>w, r, e =[], [sock, sock2], [] )

The select call waits until you can *write* to the sockets.
It should read:

w, r, e =[sock, sock2], [], [] )


More information about the Python-list mailing list