Classes for designing caller-dispatcher pairs


Classes

MRemoteCaller provides the protocol for making remote requests. When you declare a caller class, you need to mix in MRemoteCaller. This class provides the basic functions for marshalling arguments into the stream and sending them to the dispatcher, unmarshalling results from the dispatcher, and re-throwing exceptions.

MRemoteDispatcher provides the protocol for receiving requests from a caller. You mix in this class when you create a dispatcher class. MRemoteDispatcher provides the standard dispatcher functions for unmarshalling a request from the caller, passing the arguments to the correct member function implementation, marshalling results and returning them to the caller, and re-throwing exceptions.

TRemoteCallException, derived from TStandardException, handles exceptions for callers.

Macros

RPC Services use several macros along with a function defined by a macro:

MRemoteCallerDeclarationsMacro handles some internal declarations for the caller. You call this macro in the caller class interface.

MRemoteCallerDefinitionsMacro provides definitions that correspond to MRemoteCallerDeclarationsMacro. You call this macro in the implementation file for the caller class.

MRemoteCallerEnable is a function that another macro declares and defines. You call MRemoteCallerEnable in the caller class constructor.


[Contents] [Previous] [Next]
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.

Generated with WebMaker