文件名称:x-net
介绍说明--下载内容均来自于网络,请自行研究使用
IOCP(I/O Completion Port,I/O完成端口)是性能最好的一种I/O模型。它是应用程序使用线程池处理异步I/O请求的一种机制。在处理多个并发的异步I/O请求时,以往的模型都是在接收请求是创建一个线程来应答请求。这样就有很多的线程并行地运行在系统中。而这些线程都是可运行的,Windows内核花费大量的时间在进行线程的上下文切换,并没有多少时间花在线程运行上。再加上创建新线程的开销比较大,所以造成了效率的低下。
-IOCP (I/O Completion Port, I/O completion ports) is the best kind of performance I/O model. It is the application uses the thread pool handle asynchronous I/O requests of a mechanism. In dealing with multiple concurrent asynchronous I/O request, the previous models are receiving requests to create a thread to answer the request. So there is a lot of threads running in parallel on the system. These threads are runnable, Windows takes a lot of time during kernel thread context switches, and not much time is spent on running the thread. Plus the cost of creating a new thread is relatively large, so resulting in low efficiency.
-IOCP (I/O Completion Port, I/O completion ports) is the best kind of performance I/O model. It is the application uses the thread pool handle asynchronous I/O requests of a mechanism. In dealing with multiple concurrent asynchronous I/O request, the previous models are receiving requests to create a thread to answer the request. So there is a lot of threads running in parallel on the system. These threads are runnable, Windows takes a lot of time during kernel thread context switches, and not much time is spent on running the thread. Plus the cost of creating a new thread is relatively large, so resulting in low efficiency.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
source\iocp.cpp
......\queue.cpp
......\xasyncsocket.cpp
......\xbase.cpp
......\xclientitem.cpp
......\xlistenthread.cpp
......\xlog.cpp
......\xmessage.cpp
......\xserver.cpp
......\xserverbase.cpp
......\xsocket.cpp
......\xtcpheader.cpp
......\xthread.cpp
......\xworkthread.cpp
test\main.cpp
....\stdafx.cpp
....\stdafx.h
....\targetver.h
....\TcpServer.cpp
....\TcpServer.h
....\test.vcxproj
....\test_2005.vcproj
xnet\stdafx.cpp
....\stdafx.h
....\targetver.h
....\xnet.sln
....\xnet.vcxproj
....\xnet_2005.sln
....\xnet_2005.vcproj
readme.txt
bin\debug\log4cplusD.dll
...\.....\xnet.properties
...\release\log4cplus.dll
...\.......\xnet.properties
docs\readme.txt
include\iocp.h
.......\log4cplus\appender.h
.......\.........\config\defines.hxx.in
.......\.........\......\macosx.h
.......\.........\......\win32.h
.......\.........\config.h.in
.......\.........\config.hxx
.......\.........\configurator.h
.......\.........\consoleappender.h
.......\.........\fileappender.h
.......\.........\fstreams.h
.......\.........\helpers\appenderattachableimpl.h
.......\.........\.......\loglog.h
.......\.........\.......\logloguser.h
.......\.........\.......\pointer.h
.......\.........\.......\property.h
.......\.........\.......\sleep.h
.......\.........\.......\socket.h
.......\.........\.......\socketbuffer.h
.......\.........\.......\stringhelper.h
.......\.........\.......\syncprims-pthreads.h
.......\.........\.......\syncprims-win32.h
.......\.........\.......\syncprims.h
.......\.........\.......\thread-config.h
.......\.........\.......\threads.h
.......\.........\.......\timehelper.h
.......\.........\hierarchy.h
.......\.........\hierarchylocker.h
.......\.........\layout.h
.......\.........\logger.h
.......\.........\loggingmacros.h
.......\.........\loglevel.h
.......\.........\ndc.h
.......\.........\nteventlogappender.h
.......\.........\nullappender.h
.......\.........\socketappender.h
.......\.........\.pi\appenderattachable.h
.......\.........\...\factory.h
.......\.........\...\filter.h
.......\.........\...\loggerfactory.h
.......\.........\...\loggerimpl.h
.......\.........\...\loggingevent.h
.......\.........\...\objectregistry.h
.......\.........\...\rootlogger.h
.......\.........\streams.h
.......\.........\syslogappender.h
.......\.........\tstring.h
.......\.........\version.h
.......\.........\win32consoleappender.h
.......\.........\win32debugappender.h
.......\queue.h
.......\xasyncsocket.h
.......\xbase.h
.......\xclientitem.h
.......\xlistenthread.h
.......\xlog.h
.......\xmessage.h
.......\xserver.h
.......\xserverbase.h
.......\xsockaddr.h
.......\xsocket.h
.......\xtcpheader.h
.......\xthread.h
.......\xworkthread.h
lib\log4cplus.lib
......\queue.cpp
......\xasyncsocket.cpp
......\xbase.cpp
......\xclientitem.cpp
......\xlistenthread.cpp
......\xlog.cpp
......\xmessage.cpp
......\xserver.cpp
......\xserverbase.cpp
......\xsocket.cpp
......\xtcpheader.cpp
......\xthread.cpp
......\xworkthread.cpp
test\main.cpp
....\stdafx.cpp
....\stdafx.h
....\targetver.h
....\TcpServer.cpp
....\TcpServer.h
....\test.vcxproj
....\test_2005.vcproj
xnet\stdafx.cpp
....\stdafx.h
....\targetver.h
....\xnet.sln
....\xnet.vcxproj
....\xnet_2005.sln
....\xnet_2005.vcproj
readme.txt
bin\debug\log4cplusD.dll
...\.....\xnet.properties
...\release\log4cplus.dll
...\.......\xnet.properties
docs\readme.txt
include\iocp.h
.......\log4cplus\appender.h
.......\.........\config\defines.hxx.in
.......\.........\......\macosx.h
.......\.........\......\win32.h
.......\.........\config.h.in
.......\.........\config.hxx
.......\.........\configurator.h
.......\.........\consoleappender.h
.......\.........\fileappender.h
.......\.........\fstreams.h
.......\.........\helpers\appenderattachableimpl.h
.......\.........\.......\loglog.h
.......\.........\.......\logloguser.h
.......\.........\.......\pointer.h
.......\.........\.......\property.h
.......\.........\.......\sleep.h
.......\.........\.......\socket.h
.......\.........\.......\socketbuffer.h
.......\.........\.......\stringhelper.h
.......\.........\.......\syncprims-pthreads.h
.......\.........\.......\syncprims-win32.h
.......\.........\.......\syncprims.h
.......\.........\.......\thread-config.h
.......\.........\.......\threads.h
.......\.........\.......\timehelper.h
.......\.........\hierarchy.h
.......\.........\hierarchylocker.h
.......\.........\layout.h
.......\.........\logger.h
.......\.........\loggingmacros.h
.......\.........\loglevel.h
.......\.........\ndc.h
.......\.........\nteventlogappender.h
.......\.........\nullappender.h
.......\.........\socketappender.h
.......\.........\.pi\appenderattachable.h
.......\.........\...\factory.h
.......\.........\...\filter.h
.......\.........\...\loggerfactory.h
.......\.........\...\loggerimpl.h
.......\.........\...\loggingevent.h
.......\.........\...\objectregistry.h
.......\.........\...\rootlogger.h
.......\.........\streams.h
.......\.........\syslogappender.h
.......\.........\tstring.h
.......\.........\version.h
.......\.........\win32consoleappender.h
.......\.........\win32debugappender.h
.......\queue.h
.......\xasyncsocket.h
.......\xbase.h
.......\xclientitem.h
.......\xlistenthread.h
.......\xlog.h
.......\xmessage.h
.......\xserver.h
.......\xserverbase.h
.......\xsockaddr.h
.......\xsocket.h
.......\xtcpheader.h
.......\xthread.h
.......\xworkthread.h
lib\log4cplus.lib