ibm-information-center/dist/eclipse/plugins/i5OS.ic.apis_5.4.0.1/svc_getrpccaller.htm

140 lines
3.0 KiB
HTML
Raw Permalink Normal View History

2024-04-02 14:02:31 +00:00
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Copyright" content="Copyright (c) 2006 by IBM Corporation">
<title>svc_getrpccaller()--Get the Network Address of the Caller</title>
<!-- All rights reserved. Licensed Materials Property of IBM -->
<!-- US Government Users Restricted Rights -->
<!-- Use, duplication or disclosure restricted by -->
<!-- GSA ADP Schedule Contract with IBM Corp. -->
<!-- Begin Header Records ========================================== -->
<!-- RPCMST SCRIPT A converted by B2H R4.1 (346) (CMS) by PMHALL at -->
<!-- RCHVMW2 on 7 Oct 1998 at 23:43:14 -->
<!-- Edited by Kersten Feb 02 -->
<!--End Header Records -->
<link rel="stylesheet" type="text/css" href="../rzahg/ic.css">
</head>
<body>
<a name="Top_Of_Page"></a>
<!-- Java sync-link -->
<script language="Javascript" src="../rzahg/synch.js" type="text/javascript">
</script>
<h2>svc_getrpccaller()--Get the Network Address of the Caller</h2>
<div class="box" style="width: 60%;">
<br>
&nbsp;&nbsp;Syntax<br>
<!-- iddvc RMBR -->
<br>
<pre>
#include &lt;rpc/rpc.h&gt;
struct netbuf *svc_getrpccaller(SVCXPRT *<em>xprt</em>);
</pre>
<br>
&nbsp;&nbsp;Service Program Name: QZNFTRPC<br>
<!-- iddvc RMBR -->
<br>
&nbsp;&nbsp;Default Public Authority: *USE<br>
<!-- iddvc RMBR -->
<br>
&nbsp;&nbsp;Threadsafe: No<br>
<!-- iddvc RMBR -->
<br>
</div>
<p>The <strong>svc_getrpccaller()</strong> function macro retrieves the network
address of the remote client who is calling the procedure that is associated
with the RPC service transport handle.</p>
<br>
<h3>Parameters</h3>
<dl>
<dt><strong>xprt</strong> &nbsp;(Input)&nbsp;</dt>
<dd>A pointer to the RPC service transport handle.</dd>
</dl>
<br>
<h3>Authorities</h3>
<p>No authorization is required.</p>
<br>
<h3>Return Value</h3>
<table cellpadding="5">
<!-- cols="15 85" -->
<tr>
<td align="left" valign="top"><em>netbuf</em></td>
<td align="left" valign="top">Returns a pointer to a netbuf structure containing the address
of the caller of a procedure that is associated with the RPC service
<em>xprt</em>.</td>
</tr>
</table>
<br>
<br>
<h3>Error Conditions</h3>
<p>None.</p>
<br>
<h3>Error Messages</h3>
<p>None.</p>
<br>
<h3>Example</h3>
<p>The following example shows how <strong>svc_getrpccaller()</strong> is used
:</p>
<pre>
#include &lt;rpc/rpc.h&gt;
main()
{
SVCXPRT *svc;
struct netbuf *net_buf;
...
/* Get the caller address */
net_buf = <strong>svc_getrpccaller</strong>(svc);
...
}
</pre>
<br>
<hr>
API introduced: V4R2
<hr>
<table cellpadding="2" cellspacing="2" align="center">
<tr align="center">
<td valign="middle" align="center"><a href="#Top_Of_Page">Top</a> | <a href=
"rpc1.htm">Remote Procedure Call (RPC) APIs</a> | <a href="aplist.htm">APIs by
category</a></td>
</tr>
</table>
</body>
</html>