[Mono-bugs] [Bug 80962][Nor] New - property 'Server' is not accessible for TcpListener object
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Mon Feb 26 15:09:46 EST 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 benton.stark at gmail.com.
http://bugzilla.ximian.com/show_bug.cgi?id=80962
--- shadow/80962 2007-02-26 15:09:46.000000000 -0500
+++ shadow/80962.tmp.11623 2007-02-26 15:09:46.000000000 -0500
@@ -0,0 +1,46 @@
+Bug#: 80962
+Product: Mono: Class Libraries
+Version: 1.2
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: System
+AssignedTo: mono-bugs at ximian.com
+ReportedBy: benton.stark at gmail.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: property 'Server' is not accessible for TcpListener object
+
+Description of Problem:
+The Server property in the class System.Net.Sockets.TcpListener is not
+accessible. This is probably an error since it is accessible in the
+Microsoft .NET Framework version 2.0.50727. Mono will produce an error
+when compiling using gmcs.exe.
+
+Steps to reproduce the problem:
+1. Create a new System.Net.Sockets.TcpListener object.
+2. Attempt to access the Server property.
+example code:
+=====================================
+TcpListener listener = new TcpListener(Dns.GetHostAddress("127.0.0.1")[0],
+8888);
+int avail = listener.Server.Available;
+
+Actual Results:
+error CS0122: 'System.Net.Sockets.TcpListener.Server' is inaccessible due
+to its protection level
+
+Expected Results:
+compile without error
+
+How often does this happen?
+every time
+
+Additional Information:
+Mono C# compiler version 1.2.3.1 (Windows)
+gmcs.exe
More information about the mono-bugs
mailing list