IOCP network architecture model source code
no vote
Application background IOCP full name Completion Port I/O, Chinese translation for the completion of the I/O port. IOCP is an asynchronous API I/O, which can efficiently notify the application of the I/O event. With the use of select () or other asynchronous methods, a socket socket] is associated with a completion port, and then it can continue to carry out normal WinSocket operation. However, when an event occurs, the completion port is added to a queue of the operating system. Then the application can query the core layer to get the completion port. Key Technology IOCP in addition to a server socket, also need to complete the port of the handle, the handle directly call API, binding port, the establishment of a monitoring thread, to monitor the client connection, when a connection to the IOCP on the team, and then create a few working threads, so in the connection, IOCP model will be in the working thread, so that we can in the work thread, co