Multiple NSURLConnection running background

I am trying to send multiple NSUrlConnection simultaneously using thread concept. Also i am trying to handle the connection delegates.

I tried sending repeated request but i dono how to handle the received data. Is there any documentation regarding this multiple NSURLConnection.


Use sendAsynchronousRequest:queue:completionHandler: to send a request in the background and use to completion handler to react on the completed handler. This will allow you to send as much requests as you want at the same time.

For a documentation about NSURLConnection have a look at the official Apple Class Reference and Samples.

I would also recommend you do have a look at ASIHTTPRequest or MKNetworkKit. Both are libraries supporting you to create HTTP requests, but with a lot of useful additions and a little bit easier to use.

Need Your Help

Do ASP.NET worker threads spend most of their active time in a blocked state?


I'm trying to determine the role of ASP.NET worker threads. My IIS 7 installation defaulted to allowing a maximum of 25 worker threads, whereas I would have otherwise set it to 1.

cakePHP email is not using my template to send email

email cakephp

When sending email it has the standard message below in the footer.