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 Members

Syntax

public class TcpClientChannel : System.Runtime.Remoting.Channels.IChannelSender

Remarks

Channels transport messages across remoting boundaries (for example, computers or application domains). The System.Runtime.Remoting.Channels.Tcp.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 System.Runtime.Remoting.Channels.IClientChannelSinkProvider interface through which all messages processed by the System.Runtime.Remoting.Channels.Tcp.TcpClientChannel are passed.

By default, the System.Runtime.Remoting.Channels.Tcp.TcpClientChannel class uses a binary formatter to serialize all messages.

A System.Runtime.Remoting.Channels.Tcp.TcpClientChannel object has associated configuration properties that can be set at run time either in a configuration file (by invoking the static System.Runtime.Remoting.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).

Requirements

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, 2.0.0.0