52ky 发表于 2022-10-4 11:07:22

用UDP实现可靠文件传输

大家都清理,假如用TCP传输文件的话,是很简单的,基本都不必操心会丢包,除非是网络坏了,就得重来。用UDP的话,由于UDP是不牢靠的,所以用它传输文件,要确保不丢包,就得大家自己写额定的代码来保障了。这篇文章就说说如何确保牢靠传输。
用UDP实现牢靠文件传输.doc

(Everyone cleans up. If you use TCP to transfer files, it is very simple. You don't have to worry about losing packets. Unless the network is broken, you have to start again. If you use UDP, because UDP is not reliable, you must write your own rated code to ensure that you will not lose packets when you use it to transfer files. This article talks about how to ensure reliable transmission.
Secure file transfer.doc with UDP)




页: [1]
查看完整版本: 用UDP实现可靠文件传输