[Mono-bugs] [Bug 80962][Nor] Changed - property 'Server' is not accessible for TcpListener object

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Mar 21 11:48:21 EDT 2007


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 sebastien at ximian.com.

http://bugzilla.ximian.com/show_bug.cgi?id=80962

--- shadow/80962	2007-03-21 10:22:45.000000000 -0500
+++ shadow/80962.tmp.6570	2007-03-21 10:48:20.000000000 -0500
@@ -1,13 +1,13 @@
 Bug#: 80962
 Product: Mono: Class Libraries
 Version: 1.2
 OS: unknown
 OS Details: 
-Status: NEW   
-Resolution: 
+Status: RESOLVED   
+Resolution: INVALID
 Severity: Unknown
 Priority: Normal
 Component: System
 AssignedTo: mono-bugs at ximian.com                            
 ReportedBy: benton.stark at gmail.com               
 QAContact: mono-bugs at ximian.com
@@ -53,6 +53,36 @@
 I am certain I am using gmcs and not mcs. My code is littered with
 generic types.  When I recompiled my .NET 2.0 FTP library using gmcs
 the reported bug was the only compile error I received.  It was fairly
 easy to work around the error but I thought I would report this bug so
 the gmcs compiler can be fixed - and it should be a very easy fix.  I
 ask you to please compile the supplied example code.
+
+------- Additional Comments From sebastien at ximian.com  2007-03-21 10:48 -------
+Would be easier if the supplied code was compilable (as
+Dns.GetHostAddress doesn't exists ;-)
+
+poupou at pollux:~/src/bugzilla> gmcs --version
+Mono C# compiler version 1.2.3.50
+
+poupou at pollux:~/src/bugzilla> gmcs 80962.cs
+80962.cs(6,5): warning CS0219: The variable `avail' is assigned but
+its value is never used
+Compilation succeeded - 1 warning(s)
+
+poupou at pollux:~/src/bugzilla> cat 80962.cs
+using System.Net;
+using System.Net.Sockets;
+class Program {
+static void Main () {
+TcpListener listener = new
+TcpListener(Dns.GetHostAddresses("127.0.0.1")[0], 8888);
+int avail = listener.Server.Available;
+}
+}
+
+So this works. Maybe it was fixed after 1.2.3.1 but please make sure:
+(a) that you're running the latest gmcs (gmcs --version) and not
+another, older one, on your system path;
+(b) that you do not have a 1.0 System.dll on your current directory
+(or path) that could be used instead of the 2.0 version supplied in
+Mono 1.2.3.1


More information about the mono-bugs mailing list