1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>svc_find_xprt</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="Linux Networking and Network Devices APIs"><link rel="up" href="ch01s05.html" title="SUN RPC subsystem"><link rel="prev" href="API-svc-reserve.html" title="svc_reserve"><link rel="next" href="API-svc-xprt-names.html" title="svc_xprt_names"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center"><span class="phrase">svc_find_xprt</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-svc-reserve.html">Prev</a> </td><th width="60%" align="center">SUN RPC subsystem</th><td width="20%" align="right"> <a accesskey="n" href="API-svc-xprt-names.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-svc-find-xprt"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>svc_find_xprt — 2 find an RPC transport instance 3 </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">struct svc_xprt * <b class="fsfunc">svc_find_xprt </b>(</code></td><td>struct svc_serv * <var class="pdparam">serv</var>, </td></tr><tr><td> </td><td>const char * <var class="pdparam">xcl_name</var>, </td></tr><tr><td> </td><td>struct net * <var class="pdparam">net</var>, </td></tr><tr><td> </td><td>const sa_family_t <var class="pdparam">af</var>, </td></tr><tr><td> </td><td>const unsigned short <var class="pdparam">port</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a name="idp1097066436"></a><h2>Arguments</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>serv</code></em></span></dt><dd><p> 4 pointer to svc_serv to search 5 </p></dd><dt><span class="term"><em class="parameter"><code>xcl_name</code></em></span></dt><dd><p> 6 C string containing transport's class name 7 </p></dd><dt><span class="term"><em class="parameter"><code>net</code></em></span></dt><dd><p> 8 owner net pointer 9 </p></dd><dt><span class="term"><em class="parameter"><code>af</code></em></span></dt><dd><p> 10 Address family of transport's local address 11 </p></dd><dt><span class="term"><em class="parameter"><code>port</code></em></span></dt><dd><p> 12 transport's IP port number 13 </p></dd></dl></div></div><div class="refsect1"><a name="idp1097072180"></a><h2>Description</h2><p> 14 Return the transport instance pointer for the endpoint accepting 15 connections/peer traffic from the specified transport class, 16 address family and port. 17 </p><p> 18 19 Specifying 0 for the address family or port is effectively a 20 wild-card, and will result in matching the first transport in the 21 service's list that has a matching class name. 22</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-svc-reserve.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="ch01s05.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="API-svc-xprt-names.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">svc_reserve</span> </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> <span class="phrase">svc_xprt_names</span></td></tr></table></div></body></html> 23