#include <rpc/rpc.h> struct netbuf *svc_getrpccaller(SVCXPRT *xprt);
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.
No authorization is required.
| 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. |
None.
None.
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);
...
}
| Top | Remote Procedure Call (RPC) APIs | APIs by category |