开发者

Sending large files reliably over Bonjure Logic question

开发者 https://www.devze.com 2023-02-26 06:42 出处:网络
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 o

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消