views:

109

answers:

1

Hello All,

I am writing an iPhone app which connects to a stream and parse bytes from it then create objects.

For exemple, first 11 bytes are the header, next 246 bytes are body..., I am thinking about creating class representing them, like FrameHeader, FrameBody, the question I have is what is the best way to consume data without copying then from asynchronous NSURLConnection and creating object when info for object are complete. Data are comes asynchronously and received packets are not equals.

Also, I am wondering myself about what happens in -(void)connection:(NSURLConnection *)connection didReceiveData:(NSData *)data when I received next data while I am busy with current data, am I blocked ?

I hope I am understandable...

Thanks a lot guys.

Thierry

A: 

I found the solution. Thanks

thierryb
Maybe you want to share it with us?
Andreas Bonini