[Mono-bugs] [Bug 39178][Nor] Changed - UdpClient.Connect fails with broadcast address
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
Thu, 6 Mar 2003 11:44:06 -0500 (EST)
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by clause@online.no.
http://bugzilla.ximian.com/show_bug.cgi?id=39178
--- shadow/39178 Thu Mar 6 05:35:06 2003
+++ shadow/39178.tmp.25477 Thu Mar 6 11:44:06 2003
@@ -57,6 +57,16 @@
while waiting for the connection to be established. The connection
establishment may continue asynchronously."
------- Additional Comments From gonzalo@ximian.com 2003-03-06 05:34 -------
Oh, sorry. I marked it as resolved by mistake.
+
+------- Additional Comments From clause@online.no 2003-03-06 11:44 -------
+Found a workaround: Create a class derived from UdpClient, and call:
+
+Client.SetSocketOption(SocketOptionLevel.Socket,
+SocketOptionName.Broadcast, 1);
+
+before calling Connect.
+
+(Client property = the Socket (it's protected in UdpClient))