#include <rpc/rpc.h> void svc_destroy(SVCXPRT *xprt);
The svc_destroy() function destroys an RPC service transport handle. This function deallocates the private data structures, including the handle itself. After the svc_destroy() API is used, the handle pointed to by the xprt parameter is no longer defined.
No authorization is required.
None.
None.
None.
The following example shows how svc_destroy() is used.
Note: By using the code examples, you agree to the terms of the Code license and disclaimer information.
#include <rpc/rpc.h> main() { SVCXRPT *transp; ... /* Destroy the service handle */ svc_destroy(transp); ... }
[ Back to top | Remote Procedure Call (RPC) APIs | APIs by category ]