I am trying to run the following python server under windows:
\"\"\"
An echo server that uses select to handle multiple clients at a time.
Entering any line
I don't know if your code has other problems, but the error you're getting is because of passing input
to select.select()
, the problem is that it contains sys.stdin
which is not a socket. Under Windows, select
only works with sockets.
As a side note, input
is a python function, it's not a good idea to use it as a variable.