By using default NSURLConnection and its delegate methods we can easily download the files. while downloading if internet connection is not available the downloading process has to be paused & after connection established resume the downloading..
Can any one explain me how can I implement this, and If you have any sample code relating to the pause, resume downloading. If it is in Objective-c, or C is better.
Take a look to ASIHTTPRequest
Resuming interrupted downloads
Edit:
Cancelling an asynchronous request