lwres_gethostent.html revision fd2597f75693a2279fdf588bd40dfe2407c42028
b699c4d7f85a5404be1d1ee9450331aea869b886Stef Walter - Copyright (C) 2004, 2005, 2007, 2014, 2015 Internet Systems Consortium, Inc. ("ISC")
b699c4d7f85a5404be1d1ee9450331aea869b886Stef Walter - Copyright (C) 2001 Internet Software Consortium.
b699c4d7f85a5404be1d1ee9450331aea869b886Stef Walter - Permission to use, copy, modify, and/or distribute this software for any
b699c4d7f85a5404be1d1ee9450331aea869b886Stef Walter - purpose with or without fee is hereby granted, provided that the above
b699c4d7f85a5404be1d1ee9450331aea869b886Stef Walter - copyright notice and this permission notice appear in all copies.
c2cc119de8eac712c040b3993f41c967ff2278deStef Walter - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
c2cc119de8eac712c040b3993f41c967ff2278deStef Walter - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
c2cc119de8eac712c040b3993f41c967ff2278deStef Walter - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
c2cc119de8eac712c040b3993f41c967ff2278deStef Walter - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
c2cc119de8eac712c040b3993f41c967ff2278deStef Walter - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
c2cc119de8eac712c040b3993f41c967ff2278deStef Walter - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
c2cc119de8eac712c040b3993f41c967ff2278deStef Walter - PERFORMANCE OF THIS SOFTWARE.
c2cc119de8eac712c040b3993f41c967ff2278deStef Walter<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
c2cc119de8eac712c040b3993f41c967ff2278deStef Walter<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
c2cc119de8eac712c040b3993f41c967ff2278deStef Walter<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="refentry">
90e04eae7e54ec892a6f239783df94dab5d1ed9aJakub Hrozek<p>lwres_gethostbyname, lwres_gethostbyname2, lwres_gethostbyaddr, lwres_gethostent, lwres_sethostent, lwres_endhostent, lwres_gethostbyname_r, lwres_gethostbyaddr_r, lwres_gethostent_r, lwres_sethostent_r, lwres_endhostent_r — lightweight resolver get network host entry</p>
90e04eae7e54ec892a6f239783df94dab5d1ed9aJakub Hrozek<pre class="funcsynopsisinfo">#include <lwres/netdb.h></pre>
90e04eae7e54ec892a6f239783df94dab5d1ed9aJakub Hrozek<table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr>
90e04eae7e54ec892a6f239783df94dab5d1ed9aJakub Hrozekstruct hostent *
90e04eae7e54ec892a6f239783df94dab5d1ed9aJakub Hrozek<b class="fsfunc">lwres_gethostbyname</b>(</code></td>
90e04eae7e54ec892a6f239783df94dab5d1ed9aJakub Hrozek<td>const char *<var class="pdparam">name</var><code>)</code>;</td>
90e04eae7e54ec892a6f239783df94dab5d1ed9aJakub Hrozek<table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;">
90e04eae7e54ec892a6f239783df94dab5d1ed9aJakub Hrozekstruct hostent *
90e04eae7e54ec892a6f239783df94dab5d1ed9aJakub Hrozek<b class="fsfunc">lwres_gethostbyname2</b>(</code></td>
90e04eae7e54ec892a6f239783df94dab5d1ed9aJakub Hrozek<td>const char *<var class="pdparam">name</var>, </td>
90e04eae7e54ec892a6f239783df94dab5d1ed9aJakub Hrozek<td>int <var class="pdparam">af</var><code>)</code>;</td>
ac744223411099a862a747e7168a30255c003bf7Pavel Březina<table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;">
dff909d473f43a6bd0f0286fa2d279c0ebe945c6Stef Walterstruct hostent *
fcd8093c58638dc7c4f9cddfc97f273b94ce2eadStef Walter<b class="fsfunc">lwres_gethostbyaddr</b>(</code></td>
fcd8093c58638dc7c4f9cddfc97f273b94ce2eadStef Walter<td>const char *<var class="pdparam">addr</var>, </td>
dff909d473f43a6bd0f0286fa2d279c0ebe945c6Stef Walter<td>int <var class="pdparam">type</var><code>)</code>;</td>
dff909d473f43a6bd0f0286fa2d279c0ebe945c6Stef Walter<table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr>
fcd8093c58638dc7c4f9cddfc97f273b94ce2eadStef Walterstruct hostent *
fcd8093c58638dc7c4f9cddfc97f273b94ce2eadStef Walter<b class="fsfunc">lwres_gethostent</b>(</code></td>
dff909d473f43a6bd0f0286fa2d279c0ebe945c6Stef Walter<table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr>
fcd8093c58638dc7c4f9cddfc97f273b94ce2eadStef Walter<b class="fsfunc">lwres_sethostent</b>(</code></td>
fcd8093c58638dc7c4f9cddfc97f273b94ce2eadStef Walter<td>int <var class="pdparam">stayopen</var><code>)</code>;</td>
dff909d473f43a6bd0f0286fa2d279c0ebe945c6Stef Walter<table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr>
dff909d473f43a6bd0f0286fa2d279c0ebe945c6Stef Walter<b class="fsfunc">lwres_endhostent</b>(</code></td>
dff909d473f43a6bd0f0286fa2d279c0ebe945c6Stef Walter<table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;">
ac744223411099a862a747e7168a30255c003bf7Pavel Březinastruct hostent *
ac744223411099a862a747e7168a30255c003bf7Pavel Březina<b class="fsfunc">lwres_gethostbyname_r</b>(</code></td>
ac744223411099a862a747e7168a30255c003bf7Pavel Březina<td>const char *<var class="pdparam">name</var>, </td>
ac744223411099a862a747e7168a30255c003bf7Pavel Březina<td>struct hostent *<var class="pdparam">resbuf</var>, </td>
ac744223411099a862a747e7168a30255c003bf7Pavel Březina<td>char *<var class="pdparam">buf</var>, </td>
ac744223411099a862a747e7168a30255c003bf7Pavel Březina<td>int <var class="pdparam">buflen</var>, </td>
ac744223411099a862a747e7168a30255c003bf7Pavel Březina<td>int *<var class="pdparam">error</var><code>)</code>;</td>
ac744223411099a862a747e7168a30255c003bf7Pavel Březina<table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;">
dff909d473f43a6bd0f0286fa2d279c0ebe945c6Stef Walterstruct hostent *
dff909d473f43a6bd0f0286fa2d279c0ebe945c6Stef Walter<b class="fsfunc">lwres_gethostbyaddr_r</b>(</code></td>
dff909d473f43a6bd0f0286fa2d279c0ebe945c6Stef Walter<td>const char *<var class="pdparam">addr</var>, </td>
b699c4d7f85a5404be1d1ee9450331aea869b886Stef Walter<td>struct hostent *<var class="pdparam">resbuf</var>, </td>
b699c4d7f85a5404be1d1ee9450331aea869b886Stef Walter<td>int *<var class="pdparam">error</var><code>)</code>;</td>
ac744223411099a862a747e7168a30255c003bf7Pavel Březina<table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;">
<table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr>
<table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr>
<span class="type">struct hostent</span> returned in <em class="parameter"><code>resbuf</code></em>.
<span class="type">struct hostent</span> returned in <em class="parameter"><code>resbuf</code></em>.
A recoverable error occurred, e.g., a timeout.