I'm a wee bit confused.
> def envoyer(conn, mysize):
> print mysize,' KB sent
This doesn't seem to be true from the code.
> data = '1'*1024
> data_end = data[:-5]+'#'
> data = data*(mysize-1)
So data is mysize-1 KB, but you printed mysize KB?
> begining = time.time()
>
le dahut wrote:
> Hi,
> I try to send some data across a network (between 400KB and 10MB) like
> this :
> def envoyer(conn, mysize):
> print mysize,' KB sent'
> data = '1'*1024
> data_end = data[:-5]+'#'
> data = data*(mysize-1)
> begining = time.time()
> conn.sen