Oserror: [winerror 10038] An Operation Was Attempted On Something That Is Not A Socket
I was testing out a client-side scheme here server and client use same port 9009 to connect somehow the following code gives me OSError as wrote in the titile: import sys import so
Solution 1:
socket_list = [sys.stdin, s]
# Get the list sockets which are readable
ready_to_read,ready_to_write,in_error = select.select(socket_list,[],[])
… Note that on Windows, it only works for sockets; on other operating systems, it also works for other file types …
So, unlike on a sane OS, we cannot use sys.stdin
here.
Post a Comment for "Oserror: [winerror 10038] An Operation Was Attempted On Something That Is Not A Socket"