Location:
Search - iocp pool
Search list
Description: 主要封装了CNdkIOCPServer,CNDKThreadServer,CNdkTcpClient 三个类及相关的连接池,线程池等,大家看看,有意 见的话给我提提 starcbh@21cn.com NdkIOCPServer类需win2k以上 必须winsock2.2以上版本 ============================================ // NdkIOCPServer.h: interface for the CNdkIOCPServer class.-CNdkIOCPServer the main package, CNDKThreadServer, CNdkTcpClient three categories and the associated link pool, thread pool, you see, there are views to the starcbh@21cn.com NdkIOCPServer I mention category above must be win2k winsock2.2 versions ======= ==================================// NdkIOCPServer.h : CNdkIOCPServer interface for the class.
Platform: |
Size: 971776 |
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: IOCP 线程池的 delphi 实现,其中 IOCPPool.pas 封装了主要的控件和池的实现,十分有参考价值-IOCP thread pool delphi realized, IOCPPool.pas Packaging, which the main pool and controls to achieve great reference value
Platform: |
Size: 105472 |
Author: szw |
Hits:
Description: 此代码为一个完整的线程池模块,完成线程池的调度功能-this code for a thread pool integrity of the module, complete thread pool scheduling function
Platform: |
Size: 6144 |
Author: chenwude |
Hits:
Description: 一个完成端口封装类,用户可以利用此类实现无阻塞,带内存池的网络通信-A complete package-type port, users can realize the use of such non-blocking, with the network communications memory pool
Platform: |
Size: 993280 |
Author: 孙亚新 |
Hits:
Description: TCP/IP 线程池IOCP模式下的封装库代码,给大家参考参考.谢谢啊.-TCP/IP mode IOCP thread pool package database code, to your information. Thank you, ah.
Platform: |
Size: 144384 |
Author: 杨明 |
Hits:
Description: VC++写的socket server 支持线程池 iocp模型.-VC++ Written to support the socket server thread pool iocp model.
Platform: |
Size: 58368 |
Author: 林健 |
Hits:
Description: 基于一个手机短信发送平台,服务器使用IOCP线程池,数据库使用线程池保存数据,可以同时处理上千用户的数据,服务器每秒可以处理1000左右条短信-Send message based on a mobile phone platform, the server using IOCP thread pool, thread pool to use the database to preserve data, can handle thousands of user data, the server can handle per second 1000 article about message
Platform: |
Size: 121856 |
Author: hua |
Hits:
Description: IOCP服务器
内存池、线程池
性能不错-IOCP server memory pool, thread pool performance good
Platform: |
Size: 418816 |
Author: sdfsfsdf |
Hits:
Description: 当你开发不同类型的软件,你迟早必须处理C/S的开发。对一个程序员来说,写一个通用的C/S编码是一项困难的工作。本文档提供了一份简单但是功能强大的C/S源码,可以扩展到任何类型的C/S应用程序中。这份源码使用了高级的IOCP技术,该技术可以高效的服务于多客户端。IOCP提供了解决“每个客户端占用一个线程”的瓶颈问题的办法,只使用几个处理线程,异步输入/输出来发送/接收。IOCP技术被广泛应用在各种类型的高效服务端,例如Apache等。这份源码也提供了一系列的在处理通信和C/S软件中经常使用的功能,如文件接收/传送功能和逻辑线程池管理。本文重点在于出现在IOCP程序API中实用的解决方案,以及关于源码的全面的文档。另外,一份简单的echo版的可处理多连接和文件传输的C/S程序也在这里提供。
-When you develop different types of software, sooner or later you have to deal with C/S development. Of a programmer is to write a generic C/S coding is a difficult job. This document provides a simple but powerful C/S source code, can be extended to any type of C/S application. This source code uses the advanced IOCP technology, which can efficiently serve many clients. IOCP provides a solution "for each client thread occupying a" bottleneck problem, use only a few deal with threads, asynchronous I/O to send/receive. IOCP technology has been widely used in various types of efficient client services, such as Apache and so on. This source also provided a series of communications and in dealing with C/S software frequently used functions, such as file receiving/sending functions and logic thread pool management. This article focuses on IOCP procedures appear in the API in practical solutions, as well as a comprehensive source about the document. In addition, a simple vers
Platform: |
Size: 151552 |
Author: 高军 |
Hits:
Description: IOCP是一种高性能的网络编程框架,在面对大的服务压力的时候,用传统的accept来维持连接处理事务,服务效率会严重变低,系统主要用来维护上下文切换了.所以用IOCP来实现网络功能,类似于java里的连接池功能,让连接来排队等候处理.例子代码可用bcb调试,因为里面没有bcb的选项,只能选VC了.-IOCP is a high-performance network programming framework for services in the face of great pressure, and accept in order to maintain traditional connections to deal with the affairs of the efficiency of services would seriously low, the system is mainly used to maintain a context switch. Therefore, the use of IOCP functions to achieve the network, similar to the connection pool in java function, so that pending connections queue. Bcb debug code examples can be used as bcb There are no options, only the election of the VC.
Platform: |
Size: 39936 |
Author: 刘格斯 |
Hits:
Description: 超酷的线程池代码,非常值得学习;超酷的线程池代码,非常值得学习;-Cool thread pool code, is worth learning from
Platform: |
Size: 103424 |
Author: ligs |
Hits:
Description: 老外写的IOCP封装类,使用了线程池和内存池-IOCP foreigners write wrapper classes, using the thread pool and memory pools
Platform: |
Size: 485376 |
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: 一个基于IOCP的高效率的网络引擎
使用IOCP搭建的网络引擎,支持内存池,线程池,数据库连接池,实时加密等等。简单好用!开源,带demo例子-IOCP-based high efficiency of a network engine, network engine built using the IOCP to support the memory pool, thread pools, database connection pool, real-time encryption and so on. Simple and easy to use! Open source, with demo examples
Platform: |
Size: 1413120 |
Author: haha123_0 |
Hits:
Description: VC++ TCP_IP线程池IOCP模式下的封装库源码-Package library source code in the VC++ TCP_IP thread pool IOCP mode
Platform: |
Size: 161792 |
Author: nicai |
Hits:
Description: 这是一本关于IOCP模型的介绍。 里面有线程池、内存池等的介绍,很好,很有帮助-This is a book about IOCP model are introduced. Inside thread pool, the memory pool introduction, very good, very helpful
Platform: |
Size: 66560 |
Author: 李东旭 |
Hits:
Description: VC++ IOCP+线程池网络通讯源码 几万个主机在线无压力-VC++ IOCP+ thread pool hosts tens of thousands of network communications source code online without pressure
Platform: |
Size: 206848 |
Author: kingmax |
Hits:
Description: IOCP的socket连接池, 解决高并发的连接问题-socket pool for IOCP, resolve the greatness intercurrent.
Platform: |
Size: 34816 |
Author: zl |
Hits:
Description: 易语言IOCP线程池源码例程程序结合易语言多线程支持库,调用API函数实现IOCP线程池操作。
-Easy language IOCP thread pool source routine procedures combined with easy language multithreading support library, call the API function to achieve IOCP thread pool operation.
Platform: |
Size: 3072 |
Author: zcwl |
Hits: