The blocking Model Most Winsock programmers begin with the blocking model because it is the easie st and most straightforward model. The Winsock samples in Chapter 1 use this m odel. As we have mentioned, applications following this model typically use on e or two threads per socket connection for handling I/O. Each thread will then issue blocking operations, such as send and recv. The advantage to the blocking model is its simplicity. For very simple applica tions and rapid prototyping, this model is very useful. The disadvantage is th at it does not scale up to many connections as the creation of more threads co nsumes valuable system resources -- [0;1;31m�� ��源:��泉������ http://bbs.sdu.edu.cn [FROM: 202.194.32.132][m
CNUsenet