I want to send large files over Bonjure network. When I send a file from one device to another in Bonjure I have开发者_StackOverflow中文版 to split the file in to NSData packets and sent them to the other device. How do I make sure that all the packets arrive at the destination, and if a packet doesn't arrive there how do I tell the first device to resend it? Can you help me out with the logic or some example code? Thank you.
I used a modified version of the open source BeamIt code to send audio files between devices. The basic procedure is to use ACK packets to acknowledge the receipt of a packet. Check out a network book for the standard protocol, then check out BeamIt to get you started on the right path.
精彩评论