DOCUMENT:Q236406 17-DEC-2000 [win95x] TITLE :BUG: Accept Socket No Inherit Notification from Listening Socket PRODUCT :Microsoft Windows 95.x Retail Product PROD/VER:WINDOWS:95,98,98 Second Edition OPER/SYS: KEYWORDS:kbnetwork kbOSWin95 kbOSWin98 kbWinsock kbDSupport ====================================================================== ------------------------------------------------------------------------------- The information in this article applies to: - Microsoft Windows 95 - Microsoft Windows 98 - Microsoft Windows 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 kbOSWin95 kbOSWin98 kbWinsock kbDSupport Technology : kbWin95search kbWin98search kbWin98SEsearch kbZNotKeyword3 kbWin98 kbWin98SE Version : WINDOWS:95,98,98 Second Edition Issue type : kbbug Solution Type : kbnofix ============================================================================= THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY. Copyright Microsoft Corporation 2000.