Hot Search : Source embeded web remote control p2p game More...
Location : Home Search - IOCP
Search - IOCP - List
iocp 一个类,可以直接使用
Date : 2010-12-11 Size : 129.7kb User : ggyy_2010@126.com

Iocp Multithread socket
Date : 2012-01-27 Size : 204.13kb User : ntaryl@gmail.comntaryl

一个线程驰的类, 下面的是基本的使用方法 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.
Date : 2025-12-24 Size : 2kb User : boxu

修改了的IOCP例子,修改了的IOCP例子-revising the IOCP example, revising the IOCP example
Date : 2025-12-24 Size : 184kb User : 海天

IOCP代码,以前在其他地方看到的 。特拿来与大家分享-IOCP code, in other places to see. Special used to share with you
Date : 2025-12-24 Size : 24kb User : lijin

IOCP服务器 内存池、线程池 性能不错-IOCP server memory pool, thread pool performance good
Date : 2025-12-24 Size : 409kb User : sdfsfsdf

有多种方法可以实现异步I/O,其不同资料上的分类一般都不尽相同,但原理上都类似,这里我把实现异步I/O的方法分为3类,本文就针对这3类方法进行详细的讨论。 (1)重叠I/O (2)异步过程调用(APC),扩展I/O (3)使用完成端口(IOCP) -There are many ways to achieve asynchronous I/O, its information on the different classifications in general are not all the same, the principle are similar, here I Asynchronous I/O method is divided into 3 categories, for this article 3 methods are discussed in detail. (1) overlapped I/O (2) Asynchronous Procedure Call (APC), the expansion of I/O (3) the use of the completion port (IOCP)
Date : 2025-12-24 Size : 424kb User : 周晓宇

当你开发不同类型的软件,你迟早必须处理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
Date : 2025-12-24 Size : 148kb User : 高军

一套完整的DDOS攻击软件代码 包括服务端 客户端 采用IOCP上线-a DDOS attacks tool src , including client server online using IOCP
Date : 2025-12-24 Size : 2.46mb User : gt

Windows IOCP 是使用方法和原理详解-Windows IOCP is the use of methods and the principle of detailed
Date : 2025-12-24 Size : 33kb User : ding

包括了用vc++开发iocp的整体方案,比使用select模型要好得多-Including the use vc++ to develop the overall program iocp
Date : 2025-12-24 Size : 6.28mb User : 林芃

完成端口IOCP,接受大连接的服务器,可以将资源消降到最小,高性能。-Completion port IOCP, to connect the server to accept large, you can minimize the resource consumption, high-performance.
Date : 2025-12-24 Size : 183kb User : 王顺

一个完整的IOCP完成端口库,含源码,有的快下。可以用于商业-IOCP completion port a complete library, including source code, and some fast the next. Can be used for commercial
Date : 2025-12-24 Size : 182kb User : 王顺

IOCP示例,非常好,可用性好,效率高,易读,自己看啦,好东西不用叫卖吧。-IOCP example, very good, good availability, high efficiency, easy to read, his看啦, good things do not peddle bar.
Date : 2025-12-24 Size : 27kb User : 王顺

MFC IOCP的例子,详细介绍如何使用及使用技巧等-MFC IOCP example, details on how to use and the use of techniques ~~~~~~~~~~~~
Date : 2025-12-24 Size : 28kb User : 张凌

简单的IOCP服务器源码, 新手一看很容易就在我它。-Simple IOCP server source code, novice a look at it very easy for me.
Date : 2025-12-24 Size : 8kb User : fengyu

iCampus网络互动校园,基于IOCP完成端口的实现。建立一个C/S模型的交流互动平台,包括即时聊天,问答系统,作业系统,文件共享系统,视频会议系统等-iCampus network interaction on campus, based on IOCP completion port implementation. The establishment of a C/S model of interaction platforms, including real-time chat, Q & A systems, operating systems, file-sharing systems, video conferencing systems. .
Date : 2025-12-24 Size : 33.21mb User : 李骁桐

用完成端口模型是最高效的,本源码针对初学者对完成端口模型原理不熟,多处都有注释,以便对完成端口模型有个彻底的理解-With the completion port model is the most efficient, the source for beginners unfamiliar with the completion port model theory, many have a comment in order to complete the port model has a thorough understanding of
Date : 2025-12-24 Size : 3.36mb User : jack

iocp技术: 一个简单而又实用的iocp的范例,有很好的注释,很适合初学者的学习-iocp technology: a simple and practical iocp example, a very good note, it is suitable for beginners to learn
Date : 2025-12-24 Size : 4.09mb User : huanh

很好 很实用 IOCP模型的 Windows下最好用的模型-Very useful under Windows IOCP model best model
Date : 2025-12-24 Size : 24kb User : zhangdongxu
« 12 3 »
CodeBus is one of the largest source code repositories on the Internet!
Contact us :
1999-2046 CodeBus All Rights Reserved.