gtpc2m8a | C/C++ Language Support User's Guide |
This function queries a remote procedure call (RPC) server to see if it has been restarted automatically by the TPF 4.1 system. Whenever a loadset is activated, deactivated, or excluded by the E-type loader, all RPC servers are restarted automatically.
Format
#include <rpc.h> void tpf_is_RPCServer_auto_restarted();
Normal Return
The tpf_is_RPCServer_auto_restarted function returns one of the following:
Error Return
Not applicable.
Programming Considerations
Use this application programming interface (API) only for RPC server applications.
Examples
The following example queries the start status of the RPC server.
void rpcsrvstrt(void) { /********************************************************/ /* If this is the original version of the RPC server, */ /* then perform server initialization code. */ /********************************************************/ #include <rpc.h> if (!tpf_is_RPCServer_auto_restarted()) { server_init_fct1(); server_init_fct2(); server_init_fct3(); } else printf("RPC server is restarted by TPF\n"); }
Related Information