le dahut wrote:
> Thanks for this answer.
> Client do:
> size1, passed1 = envoyer(conn, 50)
> size2, passed2 = envoyer(conn, int(size1/passed1))
> size3, passed3 = recevoir(conn)
> size4, passed4 = recevoir(conn)
> print size2/passed2
> print size4/passed4
>
> Server do:
> recevoir(conn)
> recevoir(conn)
> size1, passed1 = envoyer(conn, 50)
> size2, passed2 = envoyer(conn, int(size1/passed1))

You defined envoyer earlier to "return passed, size" but you're
treating it as if it's "return size, passed". Maybe fixing that will
help?

-- 
Ben Sizer

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to