xdr_void()--Supply an XDR Function to the RPC System


  Syntax
 #include <rpc/xdr.h>

 bool_t xdr_void();

  Service Program Name: QZNFTRPC

  Default Public Authority: *USE

  Threadsafe: No

The xdr_void() function has no parameters. It is passed to other RPC functions that require a parameter, but does not transmit data.


Parameters

None


Authorities

No authorization is required.


Return Value

This function always returns a value of TRUE.


Error Conditions

None.


Error Messages

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.


Example

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);
   }
   ...
}


API introduced: V4R2
Top | Remote Procedure Call (RPC) APIs | APIs by category