CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - iocp-s
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Search - iocp-s - List
[
Windows Develop
]
sf_200562516252
DL : 0
一个线程驰的类, 下面的是基本的使用方法 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.
Update
: 2008-10-13
Size
: 2.64kb
Publisher
:
boxu
[
Windows Develop
]
sf_200562516252
DL : 0
一个线程驰的类, 下面的是基本的使用方法 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.
Update
: 2025-02-17
Size
: 2kb
Publisher
:
boxu
[
Internet-Network
]
IOCPTest_sample
DL : 0
完成端口的示例程序,分服务器和客户机C/S两部分,入门级别-complete examples of port procedures, and client-server machine C/S 2, entry-level
Update
: 2025-02-17
Size
: 40kb
Publisher
:
[
Internet-Network
]
myIOCPtest
DL : 0
由本人编写的一个完成端口测试程序,模拟一个多人游戏登陆的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.
Update
: 2025-02-17
Size
: 720kb
Publisher
:
qianqian
[
TCP/IP stack
]
Chat_IO
DL : 0
详细的介绍了怎么编写完成端口的程序 对大家学习完成端口(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
Update
: 2025-02-17
Size
: 314kb
Publisher
:
xsz
[
Internet-Network
]
9927441net_Iocp_src
DL : 0
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
Update
: 2025-02-17
Size
: 13kb
Publisher
:
aaaa
[
Internet-Network
]
138548usingIOCP
DL : 0
另一个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
Update
: 2025-02-17
Size
: 10kb
Publisher
:
aaaa
[
Process-Thread
]
IOCPServer
DL : 0
IOCP处理源代码,底层采用ACE的接口进行开发,效率很好-IOCP handle source code, underlying the use of ACE s interface development, efficiency,
Update
: 2025-02-17
Size
: 11kb
Publisher
:
符文科
[
Internet-Network
]
IOCP-SRC
DL : 0
IOCP实现,高并发的Socket编程,可用于网络通讯程序的后台实现-IOCP achieve high concurrency Socket programming, network communication can be used for the background process to achieve
Update
: 2025-02-17
Size
: 155kb
Publisher
:
yy
[
Windows Develop
]
Completion_Ports
DL : 0
当你开发不同类型的软件,你迟早必须处理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
Update
: 2025-02-17
Size
: 148kb
Publisher
:
高军
[
TCP/IP stack
]
IoCPCilent
DL : 0
这是我做的一个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.
Update
: 2025-02-17
Size
: 3.76mb
Publisher
:
华杰
[
Internet-Network
]
book
DL : 0
基于IOCP的c/s模式的图书管理系统 里面有ado连数据库以及数据库连接池的实现-zxz
Update
: 2025-02-17
Size
: 6.27mb
Publisher
:
zxz
[
Internet-Network
]
Chat
DL : 0
vc写的聊天室系统,iocp架构,功能比较完整,大家可以参考一下-vc system written in chat rooms, iocp the structure, function relatively complete, we can refer to
Update
: 2025-02-17
Size
: 766kb
Publisher
:
蓝云
[
Windows Develop
]
iCampusNetSchool
DL : 0
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. .
Update
: 2025-02-17
Size
: 33.21mb
Publisher
:
李骁桐
[
Internet-Network
]
libevent-1.4.4-iocp-3
DL : 0
libevent 网络服务开发包,用于开发C/S架构小型服务。-libevent Web services development package for the development of C/S structure of small services.
Update
: 2025-02-17
Size
: 275kb
Publisher
:
hyh
[
TCP/IP stack
]
styleman_iocp
DL : 0
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.
Update
: 2025-02-17
Size
: 360kb
Publisher
:
asdffd
[
Internet-Network
]
10
DL : 0
c / s 结构通讯源码 完成端口 IOCP 好用 带数据库的-c/s structure IOCP port communications easy with complete source database
Update
: 2025-02-17
Size
: 5.58mb
Publisher
:
羊是的
[
Internet-Network
]
IOCP
DL : 0
IOCP 框架 C/S模式开发 易于拓展 功能完善-IOCP framework for C/S model developed easy-to expand the functional
Update
: 2025-02-17
Size
: 179kb
Publisher
:
灵灵
[
Internet-Network
]
iocp
DL : 0
Sock完成端口模型,包括客户端和服务器端 很好的学习例子-Sock IOCP Model, including client and server. It s very good for studying SOCK IOCP.
Update
: 2025-02-17
Size
: 32kb
Publisher
:
mrw
[
Internet-Network
]
xin-iocp
DL : 0
socket c/s 网络通信 iocp 含有完成端口的服务器和客户端 是学习完成端口的好材料-socket c/s network communications
Update
: 2025-02-17
Size
: 2.27mb
Publisher
:
lihao
«
1
2
»
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.