Essentially, six types of socket I/O models are available that allow Winsock a
pplications to manage I/O: blocking, select, WSAAsyncSelect, WSAEventSelect, o
verlapped, and completion port. This section explains the features of each I/O
 model and outlines how to use it to develop an application that can manage on
e or more socket requests. On the companion CD, you will find sample applicati
ons for each I/O model demonstrating how to develop a simple TCP echo server u
sing the principles described in each model.

Note that technically speaking, there could be a straight non-blocking I/O mod
el��that is, an application that places all sockets into non-blocking mode wit
h ioctlsocket. However, this soon becomes unmanageable because the application
 will spend most of its time cycling through socket handles and I/O operations
 until they succeed.


--

�� ��源:��泉������ http://bbs.sdu.edu.cn [FROM: 202.194.32.132]