Browse Source

2002-08-20 Gonzalo Paniagua Javier <[email protected]>

	* System.Runtime.Remoting/makefile.gnu:
	* System.Runtime.Remoting/unix.args: new files.

	* System.Runtime.Remoting/System.Runtime.Remoting.Channels/BinaryClientFormatterSink.cs:
	* System.Runtime.Remoting/System.Runtime.Remoting.Channels/BinaryClientFormatterSinkProvider.cs:
	* System.Runtime.Remoting/System.Runtime.Remoting.Channels/BinaryServerFormatterSink.cs:
	* System.Runtime.Remoting/System.Runtime.Remoting.Channels/BinaryServerFormatterSinkProvider.cs:
	* System.Runtime.Remoting/System.Runtime.Remoting.Channels/ChangeLog:
	* System.Runtime.Remoting/System.Runtime.Remoting.Channels/CommonTransportKeys.cs:
	* System.Runtime.Remoting/System.Runtime.Remoting.Channels/SoapClientFormatterSink.cs:
	* System.Runtime.Remoting/System.Runtime.Remoting.Channels/SoapServerFormatterSink.cs:
	* System.Runtime.Remoting/System.Runtime.Remoting.Channels/SoapServerFormatterSinkProvider.cs:

	Move files from corlib.dll to System.Runtime.Remoting.dll.

svn path=/trunk/mcs/; revision=6810
Gonzalo Paniagua Javier 23 years ago
parent
commit
9e4839bee4

+ 92 - 0
mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels/BinaryClientFormatterSink.cs

@@ -0,0 +1,92 @@
+//
+// System.Runtime.Remoting.Channels.BinaryClientFormatterSink.cs
+//
+// Author: Rodrigo Moya ([email protected])
+//
+// 2002 (C) Copyright, Ximian, Inc.
+//
+
+using System.Collections;
+using System.IO;
+using System.Runtime.Remoting.Messaging;
+
+namespace System.Runtime.Remoting.Channels
+{
+	public class BinaryClientFormatterSink : IClientFormatterSink,
+		IMessageSink, IClientChannelSink, IChannelSinkBase
+	{
+		private IClientChannelSink nextInChain;
+		
+		public BinaryClientFormatterSink (IClientChannelSink nextSink)
+		{
+			nextInChain = nextSink;
+		}
+
+		public IClientChannelSink NextChannelSink
+		{
+			get {
+				return nextInChain;
+			}
+		}
+
+		public IMessageSink NextSink
+		{
+			[MonoTODO]
+				get { throw new NotImplementedException (); }
+		}
+
+		public IDictionary Properties
+		{
+			[MonoTODO]
+				get { throw new NotImplementedException (); }
+		}
+
+		[MonoTODO]
+		public IMessageCtrl AsyncProcessMessage (IMessage msg,
+							 IMessageSink replySink)
+		{
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		public void AsyncProcessRequest (IClientChannelSinkStack sinkStack,
+						 IMessage msg,
+						 ITransportHeaders headers,
+						 Stream stream)
+	        {
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		public void AsyncProcessResponse (IClientResponseChannelSinkStack sinkStack,
+						  object state,
+						  ITransportHeaders headers,
+						  Stream stream)
+		{
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		public Stream GetRequestStream (IMessage msg,
+						ITransportHeaders headers)
+		{
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		public void ProcessMessage (IMessage msg,
+					    ITransportHeaders requestHeaders,
+					    Stream requestStream,
+					    out ITransportHeaders responseHeaders,
+					    out Stream responseStream)
+		{
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		public IMessage SyncProcessMessage (IMessage msg)
+		{
+			throw new NotImplementedException ();
+		}
+	}
+}

+ 43 - 0
mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels/BinaryClientFormatterSinkProvider.cs

@@ -0,0 +1,43 @@
+//
+// System.Runtime.Remoting.Channels.BinaryClientFormatterSinkProvider.cs
+//
+// Author: Rodrigo Moya ([email protected])
+//
+// 2002 (C) Copyright, Ximian, Inc.
+//
+
+using System.Collections;
+
+namespace System.Runtime.Remoting.Channels
+{
+	public class BinaryClientFormatterSinkProvider :
+		IClientFormatterSinkProvider, IClientChannelSinkProvider
+	{
+		[MonoTODO]
+		public BinaryClientFormatterSinkProvider ()
+		{
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		public BinaryClientFormatterSinkProvider (IDictionary properties,
+							  ICollection providerData)
+	        {
+			throw new NotImplementedException ();
+		}
+
+		public IClientChannelSinkProvider Next
+		{
+			get { throw new NotImplementedException (); }
+			set { throw new NotImplementedException (); }
+		}
+
+		[MonoTODO]
+		public IClientChannelSink CreateSink (IChannelSender channel,
+						      string url,
+						      object remoteChannelData)
+		{
+			throw new NotImplementedException ();
+		}		
+	}
+}

+ 69 - 0
mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels/BinaryServerFormatterSink.cs

@@ -0,0 +1,69 @@
+//
+// System.Runtime.Remoting.Channels.BinaryServerFormatterSink.cs
+//
+// Author: Duncan Mak ([email protected])
+//
+// 2002 (C) Copyright, Ximian, Inc.
+//
+
+using System.Collections;
+using System.IO;
+using System.Runtime.Remoting.Messaging;
+
+namespace System.Runtime.Remoting.Channels {
+
+	public class BinaryServerFormatterSink : IServerChannelSink, IChannelSinkBase
+	{
+		IServerChannelSink next_sink;
+		
+		[MonoTODO]
+		public BinaryServerFormatterSink (BinaryServerFormatterSink.Protocol protocol,
+						  IServerChannelSink nextSink,
+						  IChannelReceiver receiver)
+		{
+			this.next_sink = nextSink;
+		}
+
+		public IServerChannelSink NextChannelSink {
+			get {
+				return next_sink;
+			}
+		}
+
+		[MonoTODO]
+		public IDictionary Properties {
+			get {
+				throw new NotImplementedException ();
+			}
+		}
+
+		[MonoTODO]
+		public void AsyncProcessResponse (IServerResponseChannelSinkStack sinkStack, object state,
+						  IMessage msg, ITransportHeaders headers, Stream stream)
+		{
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		public Stream GetResponseStream (IServerResponseChannelSinkStack sinkStack, object state,
+						IMessage msg, ITransportHeaders headers)
+		{
+			throw new NotImplementedException ();
+		}
+		
+		[MonoTODO]
+		public ServerProcessing ProcessMessage (IServerChannelSinkStack sinkStack,
+							IMessage requestMsg, ITransportHeaders requestHeaders, Stream requestStream,
+							out IMessage responseMsg, out ITransportHeaders responseHeaders, out Stream responseStream)
+		{
+			throw new NotImplementedException ();
+		}
+		
+		[Serializable]
+		public enum Protocol
+		{
+			Http = 0,
+			Other = 1,
+		}
+	}
+}

+ 53 - 0
mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels/BinaryServerFormatterSinkProvider.cs

@@ -0,0 +1,53 @@
+//
+// System.Runtime.Remoting.Channels.BinaryServerFormatterSinkProvider.cs
+//
+// Author: Rodrigo Moya ([email protected])
+//
+// 2002 (C) Copyright, Ximian, Inc.
+//
+
+using System.Collections;
+
+namespace System.Runtime.Remoting.Channels
+{
+	public class BinaryServerFormatterSinkProvider :
+		IServerFormatterSinkProvider, IServerChannelSinkProvider
+	{
+		[MonoTODO]
+		public BinaryServerFormatterSinkProvider ()
+		{
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		public BinaryServerFormatterSinkProvider (IDictionary properties,
+							  ICollection providerData)
+	        {
+			throw new NotImplementedException ();
+		}
+
+		public IServerChannelSinkProvider Next
+		{
+			[MonoTODO]
+			get {
+				throw new NotImplementedException ();
+			}
+			[MonoTODO]
+			set {
+				throw new NotImplementedException ();
+			}
+		}
+
+		[MonoTODO]
+		public IServerChannelSink CreateSink (IChannelReceiver channel)
+		{
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		public void GetChannelData (IChannelDataStore channelData)
+		{
+			throw new NotImplementedException ();
+		}
+	}
+}

+ 0 - 0
mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels/ChangeLog


+ 21 - 0
mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels/CommonTransportKeys.cs

@@ -0,0 +1,21 @@
+//
+// System.Runtime.Remoting.Channels.CommonTransportKeys.cs
+//
+// Author: Rodrigo Moya ([email protected])
+//
+// 2002 (C) Copyright, Ximian, Inc.
+//
+
+namespace System.Runtime.Remoting.Channels
+{
+	public class CommonTransportKeys
+	{
+		public const string ConnectionId = "";
+		public const string IPAddress = "";
+		public const string RequestUri = "";
+		
+		public CommonTransportKeys ()
+		{
+		}
+	}
+}

+ 96 - 0
mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels/SoapClientFormatterSink.cs

@@ -0,0 +1,96 @@
+//
+// System.Runtime.Remoting.Channels.SoapClientFormatterSink.cs
+//
+// Author: Rodrigo Moya ([email protected])
+//
+// 2002 (C) Copyright, Ximian, Inc.
+//
+
+using System.Collections;
+using System.IO;
+using System.Runtime.Remoting.Messaging;
+
+namespace System.Runtime.Remoting.Channels
+{
+	public class SoapClientFormatterSink : IClientFormatterSink,
+		IMessageSink, IClientChannelSink, IChannelSinkBase
+	{
+		private IClientChannelSink nextClientSink;
+		
+		public SoapClientFormatterSink (IClientChannelSink sink)
+		{
+			nextClientSink = sink;
+		}
+
+		public IClientChannelSink NextChannelSink
+		{
+			get {
+				return nextClientSink;
+			}
+		}
+
+		public IMessageSink NextSink
+	        {
+			[MonoTODO]
+			get {
+				throw new NotImplementedException ();
+			}
+		}
+
+		public IDictionary Properties
+		{
+			[MonoTODO]
+			get {
+				throw new NotImplementedException ();
+			}
+		}
+
+		[MonoTODO]
+		public IMessageCtrl AsyncProcessMessage (IMessage msg,
+							 IMessageSink replySink)
+		{
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		public void AsyncProcessRequest (IClientChannelSinkStack sinkStack,
+						 IMessage msg,
+						 ITransportHeaders headers,
+						 Stream stream)
+		{
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		public void AsyncProcessResponse (IClientResponseChannelSinkStack sinkStack,
+						  object state,
+						  ITransportHeaders headers,
+						  Stream stream)
+		{
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		public Stream GetRequestStream (IMessage msg,
+						ITransportHeaders headers)
+		{
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		public void ProcessMessage (IMessage msg,
+					    ITransportHeaders requestHeaders,
+					    Stream requestStream,
+					    out ITransportHeaders responseHeaders,
+					    out Stream responseStream)
+		{
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		public IMessage SyncProcessMessage (IMessage msg)
+		{
+			throw new NotImplementedException ();
+		}
+	}
+}

+ 70 - 0
mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels/SoapServerFormatterSink.cs

@@ -0,0 +1,70 @@
+//
+// System.Runtime.Remoting.Channels.SoapServerFormatterSink.cs
+//
+// Author: Duncan Mak ([email protected])
+//
+// 2002 (C) Copyright, Ximian, Inc.
+//
+
+using System.Collections;
+using System.IO;
+using System.Runtime.Remoting.Messaging;
+
+namespace System.Runtime.Remoting.Channels {
+
+	public class SoapServerFormatterSink : IServerChannelSink, IChannelSinkBase
+	{
+		IServerChannelSink next_sink;
+		
+		[MonoTODO]
+		public SoapServerFormatterSink (SoapServerFormatterSink.Protocol protocol,
+						IServerChannelSink nextSink,
+						IChannelReceiver receiver)
+		{
+			this.next_sink = nextSink;
+		}
+
+		public IServerChannelSink NextChannelSink {
+			get {
+				return next_sink;
+			}
+		}
+
+		[MonoTODO]
+		public IDictionary Properties {
+			get {
+				throw new NotImplementedException ();
+			}
+		}
+
+		[MonoTODO]
+		public void AsyncProcessResponse (IServerResponseChannelSinkStack sinkStack, object state,
+						  IMessage msg, ITransportHeaders headers, Stream stream)
+						  
+		{
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		public Stream GetResponseStream (IServerResponseChannelSinkStack sinkStack, object state,
+						IMessage msg, ITransportHeaders headers)
+		{
+			throw new NotImplementedException ();
+		}
+		
+		[MonoTODO]
+		public ServerProcessing ProcessMessage (IServerChannelSinkStack sinkStack,
+							IMessage requestMsg, ITransportHeaders requestHeaders, Stream requestStream,
+							out IMessage responseMsg, out ITransportHeaders responseHeaders, out Stream responseStream)
+		{
+			throw new NotImplementedException ();
+		}
+
+		[Serializable]
+		public enum Protocol
+		{
+			Http = 0,
+			Other = 1,
+		}
+	}
+}

+ 54 - 0
mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels/SoapServerFormatterSinkProvider.cs

@@ -0,0 +1,54 @@
+//
+// System.Runtime.Remoting.Channels.SoapServerFormatterSinkProvider.cs
+//
+// Author: Rodrigo Moya ([email protected])
+//
+// 2002 (C) Copyright, Ximian, Inc.
+//
+
+using System.Collections;
+
+namespace System.Runtime.Remoting.Channels
+{
+	public class SoapServerFormatterSinkProvider :
+		IServerFormatterSinkProvider, IServerChannelSinkProvider
+	{
+		[MonoTODO]
+		public SoapServerFormatterSinkProvider ()
+		{
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		public SoapServerFormatterSinkProvider (IDictionary properties,
+							ICollection providerData)
+		{
+			throw new NotImplementedException ();
+		}
+
+		public IServerChannelSinkProvider Next
+		{
+			[MonoTODO]
+			get {
+				throw new NotImplementedException ();
+			}
+
+			[MonoTODO]
+			set {
+				throw new NotImplementedException ();
+			}
+		}
+
+		[MonoTODO]
+		public IServerChannelSink CreateSink (IChannelReceiver channel)
+		{
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		public void GetChannelData (IChannelDataStore channelData)
+		{
+			throw new NotImplementedException ();
+		}
+	}
+}

+ 13 - 0
mcs/class/System.Runtime.Remoting/makefile.gnu

@@ -0,0 +1,13 @@
+topdir = ../..
+
+LIBRARY = ../lib/System.Runtime.Remoting.dll
+
+LIB_LIST = list
+LIB_FLAGS = -r corlib -r System
+
+SOURCES_INCLUDE=*.cs
+SOURCES_EXCLUDE=./Test*
+
+export MONO_PATH_PREFIX = ../lib:
+
+include ../library.make

+ 12 - 0
mcs/class/System.Runtime.Remoting/unix.args

@@ -0,0 +1,12 @@
+./System.Runtime.Remoting/TODOAttribute.cs
+System.Runtime.Remoting.Activation/UrlAttribute.cs
+./System.Runtime.Remoting.Channels/BinaryClientFormatterSink.cs
+./System.Runtime.Remoting.Channels/BinaryClientFormatterSinkProvider.cs
+./System.Runtime.Remoting.Channels/BinaryServerFormatterSink.cs
+./System.Runtime.Remoting.Channels/BinaryServerFormatterSinkProvider.cs
+./System.Runtime.Remoting.Channels/CommonTransportKeys.cs
+./System.Runtime.Remoting.Channels/SoapClientFormatterSink.cs
+./System.Runtime.Remoting.Channels/SoapServerFormatterSink.cs
+./System.Runtime.Remoting.Channels/SoapServerFormatterSinkProvider.cs
+./System.Runtime.Remoting.Channels.Tcp/TcpChannel.cs
+./System.Runtime.Remoting.Channels.Tcp/TcpClientChannel.cs