Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经在我的应用程序中建立了一个 udp 连接,但问题是有时它没有从 UDP 服务器函数接收代码。它发生了很多次,所以有任何方法可以解决这个问题。
提前致谢。
UDP数据包也可能返回两次。 使用 TCP,卢克
简而言之,没有。当您使用 UDP 时,无法保证您的消息会到达另一端。此外,没有真正的“UDP 连接”,它只是谨慎的消息。
如果您需要一个保证交付的系统,请使用 TCP。