• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Bandwidth throttling
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Bandwidth throttling
      • From: email@hidden
References: 
 >Bandwidth throttling (From: email@hidden)

  • Prev by Date: Re: Bandwidth throttling
  • Next by Date: TCP limits
  • Previous by thread: Re: Bandwidth throttling
  • Next by thread: Re: Bandwidth throttling
  • Index(es):
    • Date
    • Thread