The information in this article applies to:
SYMPTOMSI have set a WSAAsyncSelect() call to notify me of read (FD_READ) and disconnection (FD_CLOSE). When a read call is posted on my message queue, I continually read from the socket until there are no more characters waiting. After each read, I use a select() call to determine if more data needs to be read. However, after a while, the notifications stop coming. Why is this? CAUSEThe message queue must be cleared of extraneous notification messages for each read notification message. RESOLUTIONCall WSAAsyncSelect( sockt, hWnd, 0, 0) to clear the message queue for each read notification. MORE INFORMATIONSample Code
Additional query words:
Keywords : kbnetwork kbAPI kbNTOS310 kbNTOS350 kbNTOS351 kbNTOS400 kbSDKPlatform kbWinOS310 kbWinOS95 kbWinsock kbGrpNet |
Last Reviewed: October 15, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |