Read / Write image file

codecraig codecraig at gmail.com
Wed May 4 08:06:36 EDT 2005


so something like,

x = sock.recv(1024)
while (len(x) > 0):
    # do stuff
    x = sock.recv(1024)


??

So what if the client sends 4 bytes, and then sends 8000 bytes?  WIll I
get the first 4 bytes as a separate msg so to speak?  Basically i want
to catch each message from the client as a whole.




More information about the Python-list mailing list