System.Runtime.Remoting.Channels.Tcp.TcpClientChannel Class

For remote calls, implements a client channel that uses the TCP protocol to transmit messages.

See Also: TcpClientChannel


public class TcpClientChannel : IChannelSender


Channels transport messages across remoting boundaries (for example, computers or application domains). The TcpClientChannel class transports messages using the TCP protocol.

Channels are used by the .NET Framework remoting infrastructure to transport remote calls. When a client makes a call to a remote object, the call is serialized into a message that is sent by a client channel and received by a server channel. It is then deserialized and processed. Any returned values are transmitted by the server channel and received by the client channel.

To perform additional processing of messages on the client side, you can specify an implementation of the IClientChannelSinkProvider interface through which all messages processed by the TcpClientChannel are passed.

By default, the TcpClientChannel class uses a binary formatter to serialize all messages.

A TcpClientChannel object has associated configuration properties that can be set at run time either in a configuration file (by invoking the static RemotingConfiguration.Configure(String) method) or programmatically (by passing a IDictionary collection to the TcpClientChannel.#ctor(IDictionary, System.Runtime.Remoting.Channels.IClientChannelSinkProvider) constructor). For a list of these configuration properties, see the documentation for TcpClientChannel.#ctor(IDictionary, System.Runtime.Remoting.Channels.IClientChannelSinkProvider).


Namespace: System.Runtime.Remoting.Channels.Tcp
Assembly: System.Runtime.Remoting (in System.Runtime.Remoting.dll)
Assembly Versions: 1.0.3300.0, 1.0.5000.0,

The members of System.Runtime.Remoting.Channels.Tcp.TcpClientChannel are listed below.

See Also: Object

Public Constructors

Initializes a new instance of the TcpClientChannel class.

Initializes a new instance of the TcpClientChannel class with the specified configuration properties and sink.

Initializes a new instance of the TcpClientChannel class with the specified name and sink.

Public Properties


Gets the name of the current channel.


Gets the priority of the current channel.

Public Methods