P2P通信中使用ENet提供UDP的可靠传输

ENet官网:http://enet.bespin.org/

按照他的说法:

ENet's purpose is to provide a relatively thin, simple and robust network communication layer on top of UDP (User Datagram Protocol).The primary feature it provides is optional reliable, in-order delivery of packets.

ENet的目的是提供一个相对轻量、简单、稳定的基于UDP的网络通信。主要特色就是提供了可选的、可靠的、顺序传送的数据包。

ENet omits certain higher level networking features such as authentication, lobbying, server discovery, encryption, or other similar tasks that are particularly application specific so that the library remains flexible, portable, and easily embeddable.

ENet忽略了某些高级网络的功能,特别是特定的应用,如认证、lobbying、服务器发现,加密,或其他类似的任务等,从而保证ENET的库文件灵活,可移植,易于嵌入。

原文地址:https://www.cnblogs.com/bugutian/p/6612294.html