IOCP_using_WinSock

所属分类:网络编程
开发工具:Visual C++
文件大小:227KB
下载次数:123
上传日期:2006-03-30 10:07:38
上 传 者三人行
说明:  用winsock实现IOCP(完成端口)的演示.使用非常简单的代码,让读者更容易理解IOCP的使用
(with winsock achieve IOCP (complete port) demonstration. Using very simple code to allow readers to more easily understand the use of IOCP)

文件列表:
IO completion ports using WinSock (0, 2006-03-30)
IO completion ports using WinSock\ClientIOCP.zip (4180, 2006-03-30)
IO completion ports using WinSock\ServerIOCP.zip (6907, 2006-03-30)
IO completion ports using WinSock\ServerIOCP_OLD.zip (5984, 2006-03-30)
IO completion ports using WinSock\socket2.zip (2966, 2006-03-30)
IO completion ports using WinSock\wczhang_20060329_ICCV05_Active Search.rar (211709, 2006-03-30)

本代码在codeproject下载,27 Mar 2006 发表的 Introduction The primary objective of this code submission is to provide a source code which will demonstrate the use of IOCP using WinSock. This code submission tries to highlight the use of IOCP using a very easy to understand source code: the client and the server perform very simple operations; basically, they send and receive simple string messages. Such a simple client and server operation doesn't warrant the use of IOCP; however, like I stated earlier, the objective of this code submission is to highlight the use of IOCP, other considerations are secondary. Additionally, I have included socket1.zip, this code submission contains a one-to-one client and server implementation and doesn't use IOCP. Similarly, socket2.zip contains a multi-threaded socket based server that creates a thread for every client connection and is not a good design. I have included these additional codes, so that the reader can compare these implementations with the IOCP implementation. This will provide additional insights to the understanding of the use of IOCP using WinSock. This is my updated post. In this post, I have used overlapped I/O. I have included ServerIOCP_OLD.zip which is my old non-overlapped I/O implementation, although, IOCP shouldn't be used with non-overlapped I/O, the implementation is very straightforward and easy to understand. If you are new to IOCP and overlapped I/O, it is better to glance through the non-overlapped implementation before moving onto the overlapped I/O implementation, this will help you in understanding the IOCP better. Background

近期下载者

相关文件


收藏者