Message-ID: <4BPhSc$vjt@bbs.sdu.edu.cn>
Subject: Socket I/O Models
Date: Sun, 28 Mar 2004 11:35:02 +0000
From: onek.bbs@bbs.sdu.edu.cn (�式�)
Path: news.cnusenet.org!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-cn.bbs.comp.lang.mbox.zip!archiver1.google.com!news1.google.com!news.glorb.com!news.neu.edu.cn!maily.cic.tsinghua.edu.cn!netnews.sdu.edu.cn!SDU
Newsgroups: cn.bbs.comp.lang
Organization: 泉������
X-Filename: Programming/M.1080473702.A
Lines: 19
Xref: news.cnusenet.org cn.bbs.comp.lang:18067
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.
--
[0;1;35m�� ��源:��泉������ http://bbs.sdu.edu.cn [FROM: 202.194.32.132][m