Getting one character at a time from sockets

penman pen_man at my-deja.com
Tue Feb 6 18:07:56 EST 2001


Using ordinary TCP/IP sockets with the socket module in Python, I need
to get a single character at a time from the client; something
like "talk" in unix. How could I do that? (should be platform
independent if possible)

recv(1) didn't work. It waited till the carriage return came in. (non-
blocking didn't work either)

Thanks in advance.


Sent via Deja.com
http://www.deja.com/



More information about the Python-list mailing list