#include <rpc/xdr.h> bool_t xdr_void();
The xdr_void() function has no parameters. It is passed to other RPC functions that require a parameter, but does not transmit data.
None
No authorization is required.
This function always returns a value of TRUE.
None.
Message ID | Error Message Text |
---|---|
CPE3418 E | Possible APAR condition or hardware failure. |
CPF3CF2 E | Error(s) occurred during running of &1 API. |
CPF9872 E | Program or service program &1 in library &2 ended. Reason code &3. |
See Code disclaimer information for information pertaining to code examples.
The following example shows how xdr_void() is used:
#include <stdio.h> #define RMTPROGNUM (u_long)0x3fffffffL #define RMTPROGVER (u_long)0x1 #define RMTPROCNUM (u_long)0x1 main() { int inproc=100; enum clnt_stat, rstat; ... /* Service request to host RPCSERVER_HOST */ if ((rstat = rpc_call("RPCSERVER_HOST", RMTPROGNUM, RMTPROGVER, RMTPROCNUM, xdr_int, (char *)&inproc, xdr_void, (char *)0, "visible")) != RPC_SUCCESS) { printf("Error in the rpc_call().\n"); exit(1); } ... }
Top | Remote Procedure Call (RPC) APIs | APIs by category |