文件名称:styleman_network
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:105.53kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
styleman_network网络引擎v1.0简要说明:
本网络引擎100 保证数据包完整性,程序健壮无bug,无内存泄露,而且是线程安全的.服务端客户连接无限制.
引擎功能无任何限制.具体使用可参看例子.
CreateNetXXX 和DestroyNetXXX 必须成对使用. 创建了当然要销毁.
网络引擎服务端默认30秒超时的心跳包时间.即客户连接到服务端,至少30秒以内要发送一包数据给服务端.可以自己设置心跳超时时间.
网络引擎服务端默认10秒连接超时.即客户只连接到服务端,没发送任何数据.那么超过10秒后,服务端将把客户连接关闭.防止恶意的空连接攻击.可以自己设置连接超时时间.
Send一个数据包大小不能超过15KB.超过则发送失败
不要在数据回调函数里耗费太多时间.更不能在里面Sleep.因为那会阻塞,影响其他收到数据的回调.造成程序无法及时响应.
关于性能方面,线程池+select的io和WSASynSelect效率当然比不上iocp,但承受300-400个客户连接的小型网络服务器还是足够的.具体还是需要实际的环境测试,察看连接数,io,使用cpu .然后设置个最大连接数.达到最佳网络io状态.
未经授权,禁止使用本程序用于任何商业软件中.否则将追究法律责任.-styleman_network Network Engine v1.0 Brief Descr iption:
The network packet engine 100 guarantee the integrity, the program robust no bug, no memory leaks, and is thread safe. Server unlimited client connections.
Engine functions without any restrictions. Specific examples of use can be found.
CreateNetXXX and DestroyNetXXX must be in pairs. Created a course to destruction.
Network Engine server default 30 second timeout of the heartbeat packet time. The client connects to the server, at least 30 seconds to send a packet of data to the server. You can set up their own heartbeat timeout.
Network Engine server connection timeout 10 seconds by default. That clients only connect to the server, did not send any data. Then, after more than 10 seconds, the server will close the client connection. To prevent malicious attacks on the air connection. You can set up their own super-connected when the time.
Send a data packet size can not exceed 15KB. Over the transmission
本网络引擎100 保证数据包完整性,程序健壮无bug,无内存泄露,而且是线程安全的.服务端客户连接无限制.
引擎功能无任何限制.具体使用可参看例子.
CreateNetXXX 和DestroyNetXXX 必须成对使用. 创建了当然要销毁.
网络引擎服务端默认30秒超时的心跳包时间.即客户连接到服务端,至少30秒以内要发送一包数据给服务端.可以自己设置心跳超时时间.
网络引擎服务端默认10秒连接超时.即客户只连接到服务端,没发送任何数据.那么超过10秒后,服务端将把客户连接关闭.防止恶意的空连接攻击.可以自己设置连接超时时间.
Send一个数据包大小不能超过15KB.超过则发送失败
不要在数据回调函数里耗费太多时间.更不能在里面Sleep.因为那会阻塞,影响其他收到数据的回调.造成程序无法及时响应.
关于性能方面,线程池+select的io和WSASynSelect效率当然比不上iocp,但承受300-400个客户连接的小型网络服务器还是足够的.具体还是需要实际的环境测试,察看连接数,io,使用cpu .然后设置个最大连接数.达到最佳网络io状态.
未经授权,禁止使用本程序用于任何商业软件中.否则将追究法律责任.-styleman_network Network Engine v1.0 Brief Descr iption:
The network packet engine 100 guarantee the integrity, the program robust no bug, no memory leaks, and is thread safe. Server unlimited client connections.
Engine functions without any restrictions. Specific examples of use can be found.
CreateNetXXX and DestroyNetXXX must be in pairs. Created a course to destruction.
Network Engine server default 30 second timeout of the heartbeat packet time. The client connects to the server, at least 30 seconds to send a packet of data to the server. You can set up their own heartbeat timeout.
Network Engine server connection timeout 10 seconds by default. That clients only connect to the server, did not send any data. Then, after more than 10 seconds, the server will close the client connection. To prevent malicious attacks on the air connection. You can set up their own super-connected when the time.
Send a data packet size can not exceed 15KB. Over the transmission
(系统自动生成,下载前可以参看下载内容)
下载文件列表
bin/netclienttest.exe
bin/netservertest.exe
bin/styleman_network.dll
netclienttest/INetEngine.h
netclienttest/netclienttest.cpp
netclienttest/netclienttest.sln
netclienttest/netclienttest.suo
netclienttest/netclienttest.vcproj
netclienttest/stdafx.cpp
netclienttest/stdafx.h
netclienttest/styleman_network.lib
netservertest/INetEngine.h
netservertest/netservertest.cpp
netservertest/netservertest.sln
netservertest/netservertest.suo
netservertest/netservertest.vcproj
netservertest/stdafx.cpp
netservertest/stdafx.h
netservertest/styleman_network.lib
bin
netclienttest
netservertest
引擎说明.txt
bin/netservertest.exe
bin/styleman_network.dll
netclienttest/INetEngine.h
netclienttest/netclienttest.cpp
netclienttest/netclienttest.sln
netclienttest/netclienttest.suo
netclienttest/netclienttest.vcproj
netclienttest/stdafx.cpp
netclienttest/stdafx.h
netclienttest/styleman_network.lib
netservertest/INetEngine.h
netservertest/netservertest.cpp
netservertest/netservertest.sln
netservertest/netservertest.suo
netservertest/netservertest.vcproj
netservertest/stdafx.cpp
netservertest/stdafx.h
netservertest/styleman_network.lib
bin
netclienttest
netservertest
引擎说明.txt
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.