Revert "[runtime] Use pthread_cond_timedwait_relative_np () function on osx if availa...
[mono.git] / mcs / class / System.Net / System.Net.Sockets / SocketException_2_1.cs
index 7877af5a68341dd7c31713f89c6b7289f2886f77..80a7bf656dd9e6a5194273da25b3f2822dbb4dbb 100644 (file)
@@ -1,12 +1,11 @@
 //
-// System.Net.Sockets.NetworkStream.cs
+// System.Net.Sockets.SocketException
 //
 // Author:
 //     Dick Porter <dick@ximian.com>
 //
 // (C) 2002 Ximian, Inc.
-//
-
+// Copyright (C) 2009 Novell, Inc (http://www.novell.com)
 //
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
@@ -28,8 +27,6 @@
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
-using System.Runtime.Serialization;
-using System.ComponentModel;
 using System.Runtime.CompilerServices;
 
 namespace System.Net.Sockets {
@@ -46,12 +43,13 @@ namespace System.Net.Sockets {
                        error_code = WSAGetLastError_internal ();
                }
 
-               public SocketException (int error)
+               public SocketException (int errorCode)
                {
-                       error_code = error;
+                       error_code = errorCode;
                }
 
-               public SocketException (int error, string message)
+               internal SocketException (int error, string message)
+                       : base (message)
                {
                        error_code = error;
                }
@@ -60,10 +58,6 @@ namespace System.Net.Sockets {
                        get { return error_code; }
                }
 
-               public int NativeErrorCode {
-                       get { return error_code; }
-               }
-
                public SocketError SocketErrorCode {
                        get { return (SocketError) error_code; }
                }