Class: | DimRpc | |
---|---|---|
Library: | DIM | |
Author: | C. Gaspar | |
Version: | v1.0 | Update :Thu Feb 11 15:52:46 1999 |
Description :
To be used by DIM Servers - Implements RPC Service
creation.
DimRpc constructors add a DIM Service of RPC
type to the list of known services.
The DimRpcs as DimServices will only be registered
(published) and served after "Starting" the DimServer.
Please refer to Usage for
an example of DimRpc creation.
Constructors :
First parameter is the Service Name.
Handler: Gets Called when an RPC is requested by a Client (DimRpcInfo)
DimRpc example:
#include "dis.hxx"
class
RpcInt : public DimRpc
{
void rpcHandler()
{
int val;
val = getInt();
val++;
setData(val);
}
public:
RpcInt(char *name): DimRpc(name,"I","I") { };
};
main()
{
RpcInt testRpcInt("TESTRPC/INT");
DimServer::start("TESTRPC");
while(1)
pause();
}