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 kevin@attix5.com.http://bugzilla.ximian.com/show_bug.cgi?id=61828
--- shadow/61828 2004-07-22 10:17:53.000000000 -0400
+++ shadow/61828.tmp.4952 2004-07-22 10:17:53.000000000 -0400
@@ -0,0 +1,43 @@
+Bug#: 61828
+Product: Mono: Runtime
+Version: unspecified
+OS: SUSE 9.0
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: kevin@attix5.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Socket.Handle does not return valid OS file descriptor.
+
+Description of Problem: With Mono on linux the Socket.Handle property does
+not return a valid OS file descriptor. Mono on Windows or .NET does return
+a valid FS which can be used for OS specific calls. I use OpenSSL and
+require the FS to pass on to the OpenSSL library. Works fine on Windows
+with both Mono and .NET.
+
+
+Steps to reproduce the problem:
+1. Retrieve the Socket.Handle on a connected socket.
+2. Try and read or write to the socket using native calls.
+
+Actual Results:
+Invalid File Descriptor.
+
+Expected Results:
+A successfull read or write operation.
+
+How often does this happen?
+Always.
+
+Additional Information:
+Looking at Mono code it seems that Socket.Handle returns a handle to some
+struct which contains the actual FS. This is a useless handle if it does
+not return the actual OS File Descriptor. It should work like it does on
+Windows.