소스 검색

Wed Mar 12 20:06:07 CET 2008 Paolo Molaro <[email protected]>

	* Socket.cs: add a static ctor so that ipv4Supported and ipv6Supported
	are initialized (they are used by the runtime).


svn path=/trunk/mcs/; revision=98073
Paolo Molaro 18 년 전
부모
커밋
59aa1a7ad2
2개의 변경된 파일11개의 추가작업 그리고 0개의 파일을 삭제
  1. 6 0
      mcs/class/System/System.Net.Sockets/ChangeLog
  2. 5 0
      mcs/class/System/System.Net.Sockets/Socket.cs

+ 6 - 0
mcs/class/System/System.Net.Sockets/ChangeLog

@@ -1,3 +1,9 @@
+
+Wed Mar 12 20:06:07 CET 2008 Paolo Molaro <[email protected]>
+
+	* Socket.cs: add a static ctor so that ipv4Supported and ipv6Supported
+	are initialized (they are used by the runtime).
+
 2008-02-01  Dick Porter  <[email protected]>
 
 	* TcpClient.cs: If the Connect fails (when given an array of

+ 5 - 0
mcs/class/System/System.Net.Sockets/Socket.cs

@@ -529,6 +529,11 @@ namespace System.Net.Sockets
 			}
 		}
 			
+		static Socket () {
+			// initialize ipv4Supported and ipv6Supported
+			CheckProtocolSupport ();
+		}
+
 		/* the field "socket" is looked up by name by the runtime */
 		private IntPtr socket;
 		private AddressFamily address_family;