|
|
@@ -0,0 +1,68 @@
|
|
|
+//
|
|
|
+// System.Runtime.Remoting.Channels.Tcp.TcpClientChannel.cs
|
|
|
+//
|
|
|
+// Author: Dietmar Maurer ([email protected])
|
|
|
+//
|
|
|
+// 2002 (C) Copyright, Ximian, Inc.
|
|
|
+//
|
|
|
+
|
|
|
+using System.Collections;
|
|
|
+using System.Runtime.Remoting.Messaging;
|
|
|
+using System.Runtime.Remoting.Channels;
|
|
|
+
|
|
|
+namespace System.Runtime.Remoting.Channels.Tcp
|
|
|
+{
|
|
|
+ public class TcpClientChannel : IChannelSender, IChannel
|
|
|
+ {
|
|
|
+ int priority = 1;
|
|
|
+ string name = "tcp";
|
|
|
+ IClientChannelSinkProvider sink_provider;
|
|
|
+
|
|
|
+ public TcpClientChannel ()
|
|
|
+ {
|
|
|
+ sink_provider = null;
|
|
|
+ }
|
|
|
+
|
|
|
+ public TcpClientChannel (IDictionary properties, IClientChannelSinkProvider sinkProvider)
|
|
|
+ {
|
|
|
+ priority = 1;
|
|
|
+ sink_provider = sinkProvider;
|
|
|
+ }
|
|
|
+
|
|
|
+ public TcpClientChannel (string name, IClientChannelSinkProvider sinkProvider)
|
|
|
+ {
|
|
|
+ priority = 1;
|
|
|
+ this.name = name;
|
|
|
+ sink_provider = sinkProvider;
|
|
|
+ }
|
|
|
+
|
|
|
+ public string ChannelName
|
|
|
+ {
|
|
|
+ get {
|
|
|
+ return name;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ public int ChannelPriority
|
|
|
+ {
|
|
|
+ get {
|
|
|
+ return priority;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [MonoTODO]
|
|
|
+ public IMessageSink CreateMessageSink (string url,
|
|
|
+ object remoteChannelData,
|
|
|
+ out string objectURI)
|
|
|
+ {
|
|
|
+ throw new NotImplementedException ();
|
|
|
+ }
|
|
|
+
|
|
|
+ [MonoTODO]
|
|
|
+ public string Parse (string url, out string objectURI)
|
|
|
+ {
|
|
|
+ throw new NotImplementedException ();
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+}
|