Re: Limitate speed of a socket-based data transferring

2006-09-17 Thread Tim Williams
On 15/09/06, Grant Edwards <[EMAIL PROTECTED]> wrote: > On 2006-09-15, Steve Holden <[EMAIL PROTECTED]> wrote: > > > > Of course this depends crucially on the window size. Since the > > addition of the window scaling TCP option it's been possible > > to specify very large windows, which are useful

Re: Limitate speed of a socket-based data transferring

2006-09-15 Thread Grant Edwards
On 2006-09-15, Steve Holden <[EMAIL PROTECTED]> wrote: >>>The sender will send at whatever rate they are capable of, so >>>packets may just become backlogged on your receiving socket >> >> >> When that happens, the sending end of the socket will throttle >> down to match the rate at which data i

Re: Limitate speed of a socket-based data transferring

2006-09-15 Thread Steve Holden
Grant Edwards wrote: > On 2006-09-15, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: > >>On 14 Sep 2006 04:54:48 -0700, "billie" <[EMAIL PROTECTED]> declaimed the >>following in comp.lang.python: >> >> >>>Hi all. I'm writing a TCP-based application that I will use to trasfer >>>binary files through

Re: Limitate speed of a socket-based data transferring

2006-09-15 Thread Grant Edwards
On 2006-09-15, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: > On 14 Sep 2006 04:54:48 -0700, "billie" <[EMAIL PROTECTED]> declaimed the > following in comp.lang.python: > >> Hi all. I'm writing a TCP-based application that I will use to trasfer >> binary files through the network. This piece of cod

Re: Limitate speed of a socket-based data transferring

2006-09-14 Thread Tim Williams
On 14/09/06, Diez B. Roggisch <[EMAIL PROTECTED]> wrote: > billie schrieb: > > Hi all. I'm writing a TCP-based application that I will use to trasfer > > binary files through the network. This piece of code represents how do > > I get a file from a remote peer and save it on my local hard drive: >

Re: Limitate speed of a socket-based data transferring

2006-09-14 Thread Diez B. Roggisch
billie schrieb: > Hi all. I'm writing a TCP-based application that I will use to trasfer > binary files through the network. This piece of code represents how do > I get a file from a remote peer and save it on my local hard drive: > > file_obj = open('downloaded.ext', 'wb') > while 1: > buf =

Limitate speed of a socket-based data transferring

2006-09-14 Thread billie
Hi all. I'm writing a TCP-based application that I will use to trasfer binary files through the network. This piece of code represents how do I get a file from a remote peer and save it on my local hard drive: file_obj = open('downloaded.ext', 'wb') while 1: buf = sock.recv(2048) if len(bu