There are many introductions on the iocp completion port. I will not introduce the concept here.
If you do not consider cross-platform issues, iocp (I/O completion port, I/O completion port) in Windows is the best I/O model.
The following is an introduction to the I/O completed port server/client developed by myself:
Name: X-Net
Version: 1.0.0
Features: it encapsulates TCP network communication and uses the most efficient iocp communication mode in widows. The project includes the server and client.
It can be used for instant network communication and cross-platform network communication.
Function:
1. supports concurrent connections and communications between multiple users. Theoretically, more than 10000 online users are supported, and the actual operation is about 5000 +.
2. Supports custom communication header protocols,CodeImplements a simple package group feature.
3. Support packet forwarding service
4. Supports file download and upload
Note:
Use the Open Source log4cplus, URL: http://log4cplus.sourceforge.net/
For simple use cases, see the test directory:
Test. vcxproj -- vs2010 Project
Test_2005.vcproj -- vs2005 Project
Source code: Http://code.google.com/p/x-net/