nction getservbyname().</p>

<p>The returned values will depend on the given <b>hostserv</b> string and <b>hostserv_prio</b>, as follows:</p>

<pre><code>host + &#39;:&#39; + service  =&gt; *host = &quot;host&quot;, *service = &quot;service&quot;
host + &#39;:&#39; + &#39;*&#39;      =&gt; *host = &quot;host&quot;, *service = NULL
host + &#39;:&#39;            =&gt; *host = &quot;host&quot;, *service = NULL
       &#39;:&#39; + service  =&gt; *host = NULL, *service = &quot;service&quot;
 &#39;*&#39; + &#39;