[Mono-bugs] [Bug 76172][Wis] New - SocketOptionName.ReuseAddress
doesn't work on Mac OS X 10.4.2.
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Tue Sep 20 23:49:15 EDT 2005
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 nev at delap.com.
http://bugzilla.ximian.com/show_bug.cgi?id=76172
--- shadow/76172 2005-09-20 23:49:15.000000000 -0400
+++ shadow/76172.tmp.2842 2005-09-20 23:49:15.000000000 -0400
@@ -0,0 +1,51 @@
+Bug#: 76172
+Product: Mono: Class Libraries
+Version: 1.1
+OS: other
+OS Details: Darwin-8.2.0-Power_Macintosh-powerpc-32bit
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: System
+AssignedTo: mono-bugs at ximian.com
+ReportedBy: Nev at Delap.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: SocketOptionName.ReuseAddress doesn't work on Mac OS X 10.4.2.
+
+Or at least doesn't work like on Windows & Linux. The following are the
+results of running the code below.
+
+Windows & Linux...
+
+Good here
+Oh yeah baby. That's good socket.
+
+Darwin...
+
+Good here
+Blast this infernal socket! System.Net.Sockets.SocketException: Address
+already in use
+
+try
+{
+ Socket listenSocket;
+ listenSocket = new Socket(AddressFamily.InterNetwork,
+ SocketType.Dgram, ProtocolType.Udp);
+ listenSocket.SetSocketOption(SocketOptionLevel.Socket,
+ SocketOptionName.ReuseAddress, 1);
+ Console.WriteLine("Good here");
+ listenSocket.Bind(new IPEndPoint(IPAddress.Any, 2917));
+ Console.WriteLine("Oh yeah baby. That's good socket.");
+}
+catch (SocketException ex)
+{
+ Console.WriteLine("Blast this infernal socket! {0}", ex);
+}
+catch (Exception ex)
+{
+ Console.WriteLine("Oh dear. {0}", ex);
+}
More information about the mono-bugs
mailing list