|
External Development Guide: Remote Procedure Calls |
|
Client *IDL_RPCInit(long ServerId, char* pHostname)
Use this function to initialize an IDL RPC client session.
The client program is registered as a client of the IDL RPC server. The server that the client is registered with depends on the values of the parameters passed to the function.
The ID number of the IDL server that the program is to be registered with. If this value is 0, the default server ID (0x2010CAFE) is used.
This is the name of the machine where the IDL server is running. If this value is NULL or "", the default, "localhost", is used.
A pointer to the new CLIENT structure is returned upon successful completion. This opaque data structure is then later used by the client program to perform operations with the server. This function returns NULL if the operation was unsuccessful.
IDL Online Help (March 06, 2007)