svc_destroy()--Destroy an RPC Service Transport Handle


  Syntax
 
 #include <rpc/rpc.h>

 void svc_destroy(SVCXPRT *xprt);

  Service Program Name: QZNFTRPC

  Default Public Authority: *USE

  Threadsafe: No

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.


Parameters

xprt  (Input) 
A pointer to the RPC service transport handle.

Authorities

No authorization is required.


Return Value

None.


Error Conditions

None.


Error Messages

None.


Related Information


Example

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


API introduced: V4R2

[ Back to top | Remote Procedure Call (RPC) APIs | APIs by category ]