WinSock Zero-Length Packet Not Sent on Network

Last reviewed: December 18, 1996
Article ID: Q161179
The information in this article applies to:
  • Microsoft Windows 95

SYMPTOMS

In Windows 95, if the Windows Sockets Send() function is used to send zero-length packets using a stream-oriented socket over IPX/SPX, the function returns a success status, but no packet is sent on the network.

CAUSE

The WinSock specifications do not require that a Send() function with a length of zero actually result in a packet being sent over the network when the Send() function is called on a stream-oriented socket. Windows 95 does not actually send a packet across the network when the Send() function is called with a length of zero over a stream-oriented socket over SPX/IPX.

STATUS

Microsoft has confirmed this to be a limitation of Microsoft Windows 95. An update to address this limitation is in development, but has not been regression tested and may be destabilizing in production environments. Microsoft does not recommend implementing this update at this time. Contact Microsoft Technical Support for more information about the availability of this update.

MORE INFORMATION

According to the WinSock 2.0 specification, calling the Send() function with a length of zero is to be treated by implementations as successful. In this case, the Send() function may return 0 as a valid return value. For message-oriented sockets, a zero-length transport datagram is sent.


KBCategory: kbnetwork kbprg
KBSubcategory: win95
Additional reference words: 95


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.

Last reviewed: December 18, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.