Pārlūkot izejas kodu

2008-09-10 Bill Holmes <[email protected]>

	* Socket.cs : Adding a comment to provide locations where
	  changes to MonoSocketAsyncResult need to be synced.

	* Process.cs : Update the fields of ProcessAsyncReader to
	  match MonoSocketAsyncResult metadata/socket-io.h

	Code is contributed under MIT/X11 license.


svn path=/trunk/mcs/; revision=112681
Bill Holmes 17 gadi atpakaļ
vecāks
revīzija
017eaee375

+ 7 - 0
mcs/class/System/System.Diagnostics/ChangeLog

@@ -1,3 +1,10 @@
+2008-09-10  Bill Holmes  <[email protected]>
+
+	* Process.cs : Update the fields of ProcessAsyncReader to 
+	  match MonoSocketAsyncResult metadata/socket-io.h
+
+	Contributed under MIT/X11 license.
+
 2008-09-09  Jonathan Pryor  <[email protected]>
 
 	* TraceImpl.cs:

+ 8 - 0
mcs/class/System/System.Diagnostics/Process.cs

@@ -1291,6 +1291,9 @@ namespace System.Diagnostics {
 			   The following fields match those of SocketAsyncResult.
 			   This is so that changes needed in the runtime to handle
 			   asynchronous reads are trivial
+			   Keep this in sync with SocketAsyncResult in 
+			   ./System.Net.Sockets/Socket.cs and MonoSocketAsyncResult
+			   in metadata/socket-io.h.
 			*/
 			/* DON'T shuffle fields around. DON'T remove fields */
 			public object Sock;
@@ -1307,6 +1310,11 @@ namespace System.Diagnostics {
 			public int Size;
 			public int SockFlags;
 
+			public object AcceptSocket;
+			public object[] Addresses;
+			public int port;
+			public object Buffers;          // Reserve this slot in older profiles
+			public bool ReuseSocket;        // Disconnect
 			public object acc_socket;
 			public int total;
 			public bool completed_sync;

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

@@ -1,3 +1,10 @@
+2008-09-10  Bill Holmes  <[email protected]>
+
+	* Socket.cs : Adding a comment to provide locations where
+	  changes to MonoSocketAsyncResult need to be synced.
+
+	Code is contributed under MIT/X11 license.
+
 2008-09-06  Atsushi Enomoto  <[email protected]>
 
 	* Socket.cs : (SocketAsyncResult) release byte buffer early so that

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

@@ -84,6 +84,12 @@ namespace System.Net.Sockets
 		private sealed class SocketAsyncResult: IAsyncResult
 		{
 			/* Same structure in the runtime */
+			/*
+			  Keep this in sync with MonoSocketAsyncResult in
+  			  metadata/socket-io.h and ProcessAsyncReader
+  			  in System.Diagnostics/Process.cs.
+			*/
+
 			public Socket Sock;
 			public IntPtr handle;
 			object state;