System.Runtime.Remoting.Channels.Tcp.TcpChannel Class

Provides a channel implementation that uses the TCP protocol to transmit messages.

See Also: TcpChannel Members

Syntax

public class TcpChannel : System.Runtime.Remoting.Channels.IChannelReceiver, System.Runtime.Remoting.Channels.IChannelSender

Remarks

Channels transport messages across remoting boundaries (for example, between computers on application domains). The System.Runtime.Remoting.Channels.Tcp.TcpChannel class is a convenience class combining the functionality of the System.Runtime.Remoting.Channels.Tcp.TcpClientChannel class and the System.Runtime.Remoting.Channels.Tcp.TcpServerChannel class.

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, you can specify implementations of the System.Runtime.Remoting.Channels.IClientChannelSinkProvider and System.Runtime.Remoting.Channels.IServerChannelSinkProvider through which all messages processed by the System.Runtime.Remoting.Channels.Tcp.TcpChannel are passed.

A System.Runtime.Remoting.Channels.Tcp.TcpChannel 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 TcpChannel.#ctor constructor). For more information about channel configuration properties, see Channel and Formatter Configuration Properties.

Note:

If the server computer is running Windows 95/98/Me, the server System.Runtime.Remoting.Channels.Tcp.TcpChannel cannot be specified as secure.

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