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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access