Microsoft KB Archive/321087

= BUG: The LocalEndPoint property of the Socket class is not set when a new Socket object is returned from an Accept call in Visual Studio .NET 2002 =

Article ID: 321087

Article Last Modified on 9/19/2005

-

APPLIES TO


 * Microsoft Visual Studio .NET 2002 Professional Edition

-



This article was previously published under Q321087



SYMPTOMS
In Microsoft Visual Studio .NET 2002, the .NET Socket class has a LocalEndPoint property that is represented by an IP address and a port number to which the socket is bound. The LocalEndPoint property is set for a socket object under the following scenarios:
 * When a socket object calls bind on the server side.
 * When a new socket object is returned from an accept call on the server side.
 * When your socket object calls connect on the client side.

However, the new socket object that is returned from an accept call (second bulleted item in the preceding list) may not have its LocalEndPoint property set correctly. Instead, the LocalEndPoint property may have its value set to null.



STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed in the &quot;Applies to&quot; section. This bug was corrected in Visual Studio .NET 2003.

Keywords: kbbug kbnofix kbenv kbpending kbdswnet2003swept kbvs2002sp1sweep KB321087

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.