TcpClientChannel.cs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. //
  2. // System.Runtime.Remoting.Channels.Tcp.TcpClientChannel.cs
  3. //
  4. // Author: Dietmar Maurer ([email protected])
  5. //
  6. // 2002 (C) Copyright, Ximian, Inc.
  7. //
  8. using System.Collections;
  9. using System.Runtime.Remoting.Messaging;
  10. using System.Runtime.Remoting.Channels;
  11. namespace System.Runtime.Remoting.Channels.Tcp
  12. {
  13. public class TcpClientChannel : IChannelSender, IChannel
  14. {
  15. int priority = 1;
  16. string name = "tcp";
  17. IClientChannelSinkProvider sink_provider;
  18. public TcpClientChannel ()
  19. {
  20. sink_provider = null;
  21. }
  22. public TcpClientChannel (IDictionary properties, IClientChannelSinkProvider sinkProvider)
  23. {
  24. priority = 1;
  25. sink_provider = sinkProvider;
  26. }
  27. public TcpClientChannel (string name, IClientChannelSinkProvider sinkProvider)
  28. {
  29. priority = 1;
  30. this.name = name;
  31. sink_provider = sinkProvider;
  32. }
  33. public string ChannelName
  34. {
  35. get {
  36. return name;
  37. }
  38. }
  39. public int ChannelPriority
  40. {
  41. get {
  42. return priority;
  43. }
  44. }
  45. [MonoTODO]
  46. public IMessageSink CreateMessageSink (string url,
  47. object remoteChannelData,
  48. out string objectURI)
  49. {
  50. throw new NotImplementedException ();
  51. }
  52. [MonoTODO]
  53. public string Parse (string url, out string objectURI)
  54. {
  55. throw new NotImplementedException ();
  56. }
  57. }
  58. }