BUG: Accepted Sockets Don't Inherit Notifications from Listening Socket in a 16-bit Application

ID: Q236406


The information in this article applies to:
  • Microsoft Windows versions 95, 98, 98 Second Edition


SYMPTOMS

In a 16-Bit Windows process on Windows 98 application, the listening socket is registered for asynchronous notifications using the WSAAsyncSelect() function, see the following code sample:


WSAAsyncSelect(hListenSocket, hWind, WM_SOCKET, 
               FD_ACCEPT | FD_WRITE | FD_READ | FD_CLOSE). 
The listening socket receives the FD_ACCEPT notification and accepts the connection using the accept() function. The socket returned by the accept() function does not receive the FD_WRITE, FD_READ or the FD_CLOSE notifications. These properties of the listening socket are not transferred to the accepted socket. Therefore, the listening socket will not receive any further notifications.


RESOLUTION

You will need to call WSAAsyncSelect again on the accepted socket with the required notification.


STATUS

Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article.


MORE INFORMATION

Accepted sockets don't inherit notifications registered for the listening socket in a 16-bit applications on Windows 95 computers that have the Winsock2 upgrade installed.

Additional query words:

Keywords : kbnetwork kbWinOS95 kbWinOS98 kbWinsock kbDSupport
Version : WINDOWS:95,98,98 Second Edition
Platform : WINDOWS
Issue type : kbbug


Last Reviewed: October 19, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.