I just obtained a WIFI camera. I need to develop a iPad application to send a url request to this camera and then play the mpeg4 streaming in the iPad.
After receiving the request, this camera send back network packets to iPad. At the beginning of each packet, it contain 8 bit of unsigned char which indicated the type of this packet, such as video or audio.
Since the NSData is in 16bit format, how can i obtain the first 8bit unsigned char and recognized the type of this packet?
I think i am in the wrong track. I should focus on packet layer and find out how to use C language to deal with network packet. However, i am not good in the C language now. Can any one tell me how to using C to control network packet.