[Mono-bugs] [Bug 349449] LocalEndPoint and RemoteEndPointer properties are null for socket connected in non-blocking mode

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Dec 20 05:05:48 EST 2007


https://bugzilla.novell.com/show_bug.cgi?id=349449

User andyhume32 at yahoo.co.uk added comment
https://bugzilla.novell.com/show_bug.cgi?id=349449#c1


Andy Hume <andyhume32 at yahoo.co.uk> changed:

           What    |Removed                                         |Added
----------------------------------------------------------------------------
                 CC|                                                |andyhume32 at yahoo.co.uk
             Status|NEW                                             |RESOLVED
         Resolution|                                                |WONTFIX




--- Comment #1 from Andy Hume <andyhume32 at yahoo.co.uk>  2007-12-20 03:05:48 MST ---
There's a simple workaround: just call Bind before calling Connect.  That
sets-up the state necessary for Local-/RemoteEndPoint to work.  e.g.

        IPAddress any = s.AddressFamily == AddressFamily.InterNetworkV6 
            ? IPAddress.IPv6Any : IPAddress.Any;
        s.Bind(new IPEndPoint(any, 0));

Works on MSFT and Mono 1.2.6 (Win32) for me.  I /think/ the first line is
required if the socket might be an IPv6 one.


I've set the bug status to WONTFIX, as there's that workaround and also
presuming we wouldn't want to vary too much from the MSFT behaviour (although
NETCF's Local-/RemoteEndPoint are somewhat different from the full FX's).


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list