我目前正在开发一个 udp 套接字程序,该程序通过子网定向地址 (192.168.0.255) 进行广播。我在服务器中有一个图像文件,我会将其发送给 3 个客户端。一切工作正常,但唯一的问题是接收客户端并不总是与服务器同时完成。同步udp传输有什么技巧吗?谢谢
最佳答案
Basically, I am trying to implement a UDP based TFTP
来自维基百科,Trivial File Transfer Protocol :
TFTP is a simple protocol for transferring files, implemented on top of the UDP/IP protocols …
由于 TFTP 已经基于 UDP,因此您可以停止重新发明相同的内容。
… the current specification for the protocol can be found in RFC 1350.
关于c - 同步udp广播文件传输,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27543019/