Welcome![Sign In][Sign Up]
Location:
Search - iocp-s

Search list

[Windows Developsf_200562516252

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: 2701 | Author: boxu | Hits:

[Windows Developsf_200562516252

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:

[Internet-NetworkIOCPTest_sample

Description: 完成端口的示例程序,分服务器和客户机C/S两部分,入门级别-complete examples of port procedures, and client-server machine C/S 2, entry-level
Platform: | Size: 40960 | Author: | Hits:

[Internet-NetworkmyIOCPtest

Description: 由本人编写的一个完成端口测试程序,模拟一个多人游戏登陆的C/S结构通讯程序,服务器端由完成端口实现,客户端网络部分用dll实现。-prepared by the port completed a test procedure simulation of a multiplayer landing the C/S structure the communication process, the server-end completion ports, client Network partly dll achieve.
Platform: | Size: 737280 | Author: qianqian | Hits:

[TCP/IP stackChat_IO

Description: 详细的介绍了怎么编写完成端口的程序 对大家学习完成端口(I/0)有很大的帮助-Detailed introduction of how to complete the preparation of port procedures completed study of U.S. ports (I/0) has a great help
Platform: | Size: 321536 | Author: xsz | Hits:

[Internet-Network9927441net_Iocp_src

Description: IOCP模型代码所有封装好的VC原代码 有一定的学习研究作用 大家可以下载来-IOCP model code of all the original code package good VC has a certain degree of study and research the role of U.S. can be downloaded to
Platform: | Size: 13312 | Author: aaaa | Hits:

[Internet-Network138548usingIOCP

Description: 另一个IOCP的代码所有封装好的VC原代码 有一定的学习研究作用 大家可以下载来-Another IOCP code all good VC source code package has a certain degree of study and research the role of U.S. can be downloaded to
Platform: | Size: 10240 | Author: aaaa | Hits:

[Process-ThreadIOCPServer

Description: IOCP处理源代码,底层采用ACE的接口进行开发,效率很好-IOCP handle source code, underlying the use of ACE s interface development, efficiency,
Platform: | Size: 11264 | Author: 符文科 | Hits:

[Internet-NetworkIOCP-SRC

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:

[Windows DevelopCompletion_Ports

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:

[TCP/IP stackIoCPCilent

Description: 这是我做的一个iocp服务器的客户端测试程序,用的是事件选择的重叠端口模型,希望能对大家有帮助-This is my server to do a iocp client testing procedures are used in case of overlap select port model, there is the hope that it can assist U.S.
Platform: | Size: 3942400 | Author: 华杰 | Hits:

[Internet-Networkbook

Description: 基于IOCP的c/s模式的图书管理系统 里面有ado连数据库以及数据库连接池的实现-zxz
Platform: | Size: 6578176 | Author: zxz | Hits:

[Internet-NetworkChat

Description: vc写的聊天室系统,iocp架构,功能比较完整,大家可以参考一下-vc system written in chat rooms, iocp the structure, function relatively complete, we can refer to
Platform: | Size: 784384 | Author: 蓝云 | Hits:

[Windows DevelopiCampusNetSchool

Description: 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. .
Platform: | Size: 34826240 | Author: 李骁桐 | Hits:

[Internet-Networklibevent-1.4.4-iocp-3

Description: libevent 网络服务开发包,用于开发C/S架构小型服务。-libevent Web services development package for the development of C/S structure of small services.
Platform: | Size: 281600 | Author: hyh | Hits:

[TCP/IP stackstyleman_iocp

Description: iocp_test 演示了styleman_iocp的使用方法. netclienttest 使用styleman_network的客户端来连接上面iocp_test服务端. 经测试,iocp引擎可达到1000 tcp网络连接.并发每秒1KB/S的收发速度.-iocp_test demonstrates styleman_iocp to use. netclienttest use styleman_network client to connect to the server above iocp_test Tested, iocp engine up to 1000 tcp network connections. concurrency per 1KB/S transceiver speed.
Platform: | Size: 368640 | Author: asdffd | Hits:

[Internet-Network10

Description: c / s 结构通讯源码 完成端口 IOCP 好用 带数据库的-c/s structure IOCP port communications easy with complete source database
Platform: | Size: 5848064 | Author: 羊是的 | Hits:

[Internet-NetworkIOCP

Description: IOCP 框架 C/S模式开发 易于拓展 功能完善-IOCP framework for C/S model developed easy-to expand the functional
Platform: | Size: 183296 | Author: 灵灵 | Hits:

[Internet-Networkiocp

Description: Sock完成端口模型,包括客户端和服务器端 很好的学习例子-Sock IOCP Model, including client and server. It s very good for studying SOCK IOCP.
Platform: | Size: 32768 | Author: mrw | Hits:

[Internet-Networkxin-iocp

Description: socket c/s 网络通信 iocp 含有完成端口的服务器和客户端 是学习完成端口的好材料-socket c/s network communications
Platform: | Size: 2376704 | Author: lihao | Hits:
« 12 »

CodeBus www.codebus.net