Re: Bandwidth throttling
Re: Bandwidth throttling
- Subject: Re: Bandwidth throttling
- From: Quinn <email@hidden>
- Date: Mon, 19 Oct 2009 10:16:07 +0100
At 13:26 -0400 16/10/09, email@hidden wrote:
I'm writing a program that uses an NSURLConnection to download data
off a server and would like to be able to control how much bandwidth
it uses.
What Peter said plus... one way to close the TCP window is to just
stop reading data out of the receive socket buffer. This is not a
particularly elegant solution to download throttling, but it will
work. However, this presents a gotcha when you use NSURLConnection,
because NSURLConnection does a read and buffer in user space behind
your back. So, if you're going to do something like this, you
probably want to drop down a layer to CFHTTPStream.
S+E
--
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden