Selecting Remoting Channels

In our examples above we have been using the TcpChannel class for our remoting server and client. The TcpChannel is definitely a faster channel for remoting as it uses a binary formatter internally and you can also specify the TCP port to use for remoting. But obviously it has a problem when going through firewalls. As mentioned previously, however, in .NET remoting you are not restricted to any particular protocol. In this particular case where you need to go through networks that are firewalled, you can use the HttpChannel class, which transports messages across remoting boundaries using the SOAP protocol, which means it basically uses XML formatted data over an HTTP connection. Obviously, this will not be as efficient ...

Get Extending MFC Applications with the .NET Framework now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.