#include <rpc/rpc.h> void svc_unreg(const u_long prognum, const u_long versnum);
The svc_unreg() function removes mappings between dispatch functions and the service procedure that is identified by the prognum and versnum parameters. It also removes the mapping between the port number and the service procedure, which is identified by the prognum and versnum parameters.
No authorization is required.
None.
None.
Message ID | Error Message Text |
---|---|
CPIA1B1 I | A problem was encountered in the RPC client. |
CPIA1B2 I | TI-RPC encountered a problem in the transport protocol. |
CPIA1B8 I | A problem occurred while trying to contact the RPCBind daemon. |
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 svc_unreg is used:
/* Define remote program number and version */ #define RMTPROGNUM (u_long)0x3fffffffL #define RMTPROGVER (u_long)0x1 #include <stdio.h> #include <rpc/rpc.h> #include <netconfig.h> static void exm_proc(); main() { SVCXPRT *xprt; struct netconfig *nconf; ... result = svc_reg(xprt, RMTPROGNUM, RMTPROGVER, exm_proc, nconf); if ( !result){ fprintf(stderr, "svc_reg failed!!\n"); exit(1); } ... /* Removes mapping between procedures and objects */ svc_unreg(RMTPROGNUM, RMTPROGVER); }
Top | Remote Procedure Call (RPC) APIs | APIs by category |