svc_getrpccaller()--Get the Network Address of the Caller


  Syntax

 #include <rpc/rpc.h>

 struct netbuf *svc_getrpccaller(SVCXPRT *xprt);

  Service Program Name: QZNFTRPC

  Default Public Authority: *USE

  Threadsafe: No

The svc_getrpccaller() function macro retrieves the network address of the remote client who is calling the procedure that is associated with the RPC service transport handle.


Parameters

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

Authorities

No authorization is required.


Return Value

netbuf Returns a pointer to a netbuf structure containing the address of the caller of a procedure that is associated with the RPC service xprt.


Error Conditions

None.


Error Messages

None.


Example

The following example shows how svc_getrpccaller() is used :

#include <rpc/rpc.h>

main()
{
  SVCXPRT *svc;
  struct netbuf *net_buf;

  ...
  /* Get the caller address */
  net_buf = svc_getrpccaller(svc);

  ...
}


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