I just started to learn python and trying to write simple chat using select. I run Windows.
. In my client i use
socket_list=[]
socket_list.append(sys.stdin)
socket_list.append(s)
while 1:
# Get the list sockets which are readable
read_sockets,wr,err = select.select(socket_list , [], [])
Because i run windows i cannot add sys.stdin to socket_list. Anyone can suggest different way how i can do this?
Thank you very much and sorry for noob questions.