RPC over TCP

  • Thread starter Thread starter Udi
  • Start date Start date
U

Udi

Hi All,
I have a C# dll that exports some functions.
I have a TCP server application that loads this dll at runtime.
The TCP server receives request messages to invoke the dll functions
from clients.

Each invocation request (sent by clients) consists of the name of the
class library (dll), the name of the function and it's parameters
(that may be of structure type).

Is there any built in mechanism in .NET that can help me do that?
(I need to come up with a conveniant protocol to RPC these functions
from remote clients.)

Thanks,
Udi.
 
Yes,
You can have your server application expose a .NET Remoting endpoint
supporting the TCP Remoting Channel. The clients can make their method calls
against the remoting proxy, which will be forwarded to your server applicaion
to fulfill and return any return types / values.

Look up "Remoting" in the documentation for sample code.
Peter
 
Back
Top