Location:
Search - IOCP socket
Search list
Description: 这是介绍了好几种常见的网络通信架构,有异步事件模式,iocp模式,重叠端口模式等。程序很好用,实例也很好。
Platform: |
Size: 889203 |
Author: liyani_1980 |
Hits:
Description: 一个非常好的通过IOCP实现多客户端跟服务器端快速通讯的原代码,包括客户端和服务器端的实现通讯的例子源码,对大家或许很有帮助
Platform: |
Size: 50294 |
Author: fugaoting |
Hits:
Description: 老外写的IOCP完成端口源程代码,适合初学者。
Platform: |
Size: 158302 |
Author: netfleet |
Hits:
Description: 用于大量socket连接时使用IOCP捕获连接关闭事件以便释放资源的程序。可以解决winsock的AsyncSelect对句柄个数的限制问题- Uses in when the massive socket connection uses IOCP to catch
the connection closure event in order to release resources procedure.
May solve the winsock AsyncSelect 瀵瑰彞 handle integer limit problem
Platform: |
Size: 50176 |
Author: 站长 |
Hits:
Description: 一个线程驰的类, 下面的是基本的使用方法 struct TSession { SOCKET socket int id } class myIocp:public CIOCP { public: void OnRead(void * p, char * buf, int len) void OnAccept(SOCKET socket) void OnClose(void * p) } void myIocp::OnAccept(SOCKET socket) { TSession *s = new TSession s->socket = socket //这里可以对连接的session进行自己的操作,例如给id找一个唯一的值 SetIoCompletionPort(socket, s) // 使连接socket与一个自定义结构体关联 } void myIocp::OnRead(void * p, char * buf, int len) { TSession *s = (TSession *)p send(s->socket, buf, len, 0) // 这里只是简单的把收到的消息返回给客户端 ... } void myIocp::OnClose(void * p) { delete p } myIoncp iocp main() { ... iocp.listen(4311) // 开始监听网络端口,等待客户端连接 ... }-A class for thread pool,basic usage below:
struct TSession { SOCKET socket int id } class myIocp:public CIOCP
{ public:
void OnRead(void* p, char* buf, int len)
void OnAccept(SOCKET socket)
void OnClose(void* p) }
void myIocp::OnAccept(SOCKET socket)
{ TSession*s = new TSession s->socket = socket
//here you can do something about connection session,such as find a unique id.
SetIoCompletionPort(socket, s)
// make connection socket associate with a custom structure }
void myIocp::OnRead(void* p, char* buf, int len)
{ TSession*s = (TSession*)p send(s->socket, buf, len, 0)
// return received message to client
void myIocp::OnClose(void* p) { delete p } myIoncp iocp main() { ... iocp.listen(4311)
//start listenning net port,wait for client connect.
Platform: |
Size: 2048 |
Author: boxu |
Hits:
Description: WinSocket IOCP高性能服务器-WinSocket IOCP high-performance server
Platform: |
Size: 9216 |
Author: zhugang |
Hits:
Description: IOCP Socket Server控件-IOCP Socket Server Control
Platform: |
Size: 25600 |
Author: wb |
Hits:
Description: 客户端采用IOCP的方式,socket封装类-client using IOCP, socket Packaging Category
Platform: |
Size: 7168 |
Author: 朱明刚 |
Hits:
Description: IOCP 的delphi 实现, 本人测试OK的.-IOCP of delphi realize, I test the OK.
Platform: |
Size: 874496 |
Author: zzzzzz |
Hits:
Description: VC++写的socket server 支持线程池 iocp模型.-VC++ Written to support the socket server thread pool iocp model.
Platform: |
Size: 58368 |
Author: 林健 |
Hits:
Description: IOCP SOCKET 主要用于对完全端口SOCKET的使用.支持多线程.-IOCP SOCKET mainly used to completely port the use of SOCKET. Support multi-threading.
Platform: |
Size: 3072 |
Author: Mike |
Hits:
Description: windows网络模型之IOCP 实现的考试系统 可以连接大量套接字 需要配置数据源,用的access数据库-windows network model of the examination system to achieve IOCP can connect a large number of socket need to configure the data source, access the database used
Platform: |
Size: 94208 |
Author: wake |
Hits:
Description: IOCP实现,高并发的Socket编程,可用于网络通讯程序的后台实现-IOCP achieve high concurrency Socket programming, network communication can be used for the background process to achieve
Platform: |
Size: 158720 |
Author: yy |
Hits:
Description: 关于IOCP 关于Socket与完成端口的C++源代码。-About IOCP-(C++)Soure Code,Contains four examples of different degrees of difficulty. About Socket and finish port of C++ source code.
Platform: |
Size: 4072448 |
Author: gorde |
Hits:
Description: WINDOWS SOCKET IOCP模型编程例子-WINDOWS SOCKET IOCP
Platform: |
Size: 176128 |
Author: chen |
Hits:
Description: Socket通讯中服务端的性能最高的实现方法:完成端口,-Socket client communication services to achieve the highest performance method: the completion of the port,
Platform: |
Size: 7962624 |
Author: 吕高建 |
Hits:
Description: Windows IOCP Socket在C#封装,并有Socket池的实现-Windows IOCP Socket in C# package, and have achieved Socket Pool
Platform: |
Size: 32768 |
Author: 执迷不悔 |
Hits:
Description: vc++6.0,网络编程,iocp,socket,网络通讯-vc++6.0, network programming, iocp, socket, network communication
Platform: |
Size: 14336 |
Author: 李南风 |
Hits:
Description: Windows系统下的socket模型有多种,其中完成例程的效率也是相当高的,IOCP主要针对数据吞吐量和连接并发量而设计,本示例提供完整的IOCP源码示例,希望对大家对IOCP的深入理解有帮助-IOCP for socket
Platform: |
Size: 1106944 |
Author: 李卫军 |
Hits: