ENetUDP开发包
ENet 是一个易用的、可移植的 UDP 网络开发包,主要功能包括连接管理、可靠的按顺序的多通道包传输机制、包分解和重新打包、避免堵塞机制等。
下面是一个用 ENet 创建的服务器端代码示例:
ENetAddress address;
ENetHost * server;
/* Bind the server to the default localhost. */
/* A specific host address can be specified by */
/* enet_address_set_host (& address, "x.x.x.x"); */
address.host = ENET_HOST_ANY;
/* Bind the server to port 1234. */
address.port = 1234;
server = enet_host_create (& address /* the address to bind the server host to */,
32 /* allow up to 32 clients and/or outgoing connections */,
0 /* assume any amount of incoming bandwidth */,
0 /* assume any amount of outgoing bandwidth */);
if (server == NULL)
{
fprintf (stderr,
"An error occurred while trying to create an ENet server host.\n");
exit (EXIT_FAILURE);
}
...
...
...
enet_host_destroy(server);
评论
androidqueryAndroid 开发包
Android-Query(AQuery)是一个轻量级的开发包,用于实现Android上的异步任务和操作UI元素,可让Android应用开发更简单、更容易,也更有趣。
androidqueryAndroid 开发包
0
screenshot-tests-for-androidAndroid 开发包
screenshot-tests-for-android是来自Facebook的一个Android开发包,用于在Android程序中实现自动的屏幕截屏功能。示例代码:public class MyTe
screenshot-tests-for-androidAndroid 开发包
0
ThrusshSSH 开发包
Thrussh是首个Rust语言的SSH库,唯一非Rust语言实现的是crypto后端(使用libsodium)。可以用来开发SSH服务器和客户端应用。相关链接:Thrussh, https://cr
ThrusshSSH 开发包
0
JMLMSN 开发包
JML是一个支持MSNP8-MSNP15的JavaMsnMessenger库。它针对多个用户进行了优化,旨在使其易于遵循和使用。支持MSNP8/9/10/11。
JMLMSN 开发包
0
XSocketsWebSocket 开发包
XSockets是一款.NET的WebSocket开发包。提供一组强大的工具来构建实时的应用。示例代码:using XSockets.Core.Common.Socket;using (var ser
XSocketsWebSocket 开发包
0