Reputation: 245
this is the procedure of requirement.
1) I make a request, which will make a connection. It might break, but should be notified to programmer by callback.
2) the data comes as a stream from endless page in chunks.
3) I want suggestion because normal NSURLConnection wont be handy as it will break in no time. Input here is endless page from which stream comes.
Note: Endless stream might be empty and asynchronous. Any suggestions?
Thanks in advance.
Upvotes: 3
Views: 1262
Reputation: 45598
If your only problem is the timeout associated with NSURLConnection
, you can change that timeout as described in this question.
Otherwise, you will have to write your own NSStream
-based implementation. See this documentation for more information.
Upvotes: 2