lwres_hstrerror.docbook revision ddccd5811feff696ba460dabfb666ce61040f545
ee28309f0fe43e03bacd8fd1c7a573cd1ff534cajvergara<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN">
ee28309f0fe43e03bacd8fd1c7a573cd1ff534cajvergara - Copyright (C) 2000, 2001 Internet Software Consortium.
ee28309f0fe43e03bacd8fd1c7a573cd1ff534cajvergara - Permission to use, copy, modify, and distribute this software for any
ee28309f0fe43e03bacd8fd1c7a573cd1ff534cajvergara - purpose with or without fee is hereby granted, provided that the above
ee28309f0fe43e03bacd8fd1c7a573cd1ff534cajvergara - copyright notice and this permission notice appear in all copies.
ee28309f0fe43e03bacd8fd1c7a573cd1ff534cajvergara - THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
ee28309f0fe43e03bacd8fd1c7a573cd1ff534cajvergara - DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
ee28309f0fe43e03bacd8fd1c7a573cd1ff534cajvergara - IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
ee28309f0fe43e03bacd8fd1c7a573cd1ff534cajvergara - INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT,
ee28309f0fe43e03bacd8fd1c7a573cd1ff534cajvergara - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
ee28309f0fe43e03bacd8fd1c7a573cd1ff534cajvergara - FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
ee28309f0fe43e03bacd8fd1c7a573cd1ff534cajvergara - NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
ee28309f0fe43e03bacd8fd1c7a573cd1ff534cajvergara - WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
ee28309f0fe43e03bacd8fd1c7a573cd1ff534cajvergara<!-- $Id: lwres_hstrerror.docbook,v 1.1 2001/03/31 00:08:18 gson Exp $ -->
ee28309f0fe43e03bacd8fd1c7a573cd1ff534cajvergara<refentryinfo>
ee28309f0fe43e03bacd8fd1c7a573cd1ff534cajvergara</refentryinfo>
ee28309f0fe43e03bacd8fd1c7a573cd1ff534cajvergara<refnamediv>
ee28309f0fe43e03bacd8fd1c7a573cd1ff534cajvergara<refpurpose>lightweight resolver error message generation</refpurpose>
ee28309f0fe43e03bacd8fd1c7a573cd1ff534cajvergara</refnamediv>
ee28309f0fe43e03bacd8fd1c7a573cd1ff534cajvergara<refsynopsisdiv>
ee28309f0fe43e03bacd8fd1c7a573cd1ff534cajvergara<funcsynopsis>
ee28309f0fe43e03bacd8fd1c7a573cd1ff534cajvergara<funcsynopsisinfo>#include <lwres/netdb.h></funcsynopsisinfo>
ee28309f0fe43e03bacd8fd1c7a573cd1ff534cajvergara<funcprototype>
ee28309f0fe43e03bacd8fd1c7a573cd1ff534cajvergara</funcprototype>
ee28309f0fe43e03bacd8fd1c7a573cd1ff534cajvergara<funcprototype>
ee28309f0fe43e03bacd8fd1c7a573cd1ff534cajvergaraconst char *
ee28309f0fe43e03bacd8fd1c7a573cd1ff534cajvergara</funcprototype>
ee28309f0fe43e03bacd8fd1c7a573cd1ff534cajvergara</funcsynopsis>
ee28309f0fe43e03bacd8fd1c7a573cd1ff534cajvergara</refsynopsisdiv>
ee28309f0fe43e03bacd8fd1c7a573cd1ff534cajvergaraprints the string
c9d984b0d2c0fda320e79eb3868dd6fbeb1ffa34jvergarafollowed by the string generated by
c9d984b0d2c0fda320e79eb3868dd6fbeb1ffa34jvergarafor the error code stored in the global variable
c9d984b0d2c0fda320e79eb3868dd6fbeb1ffa34jvergarareturns an appropriate string for the error code gievn by
ee28309f0fe43e03bacd8fd1c7a573cd1ff534cajvergaraThe values of the error codes and messages are as follows:
ee28309f0fe43e03bacd8fd1c7a573cd1ff534cajvergara<variablelist>
ee28309f0fe43e03bacd8fd1c7a573cd1ff534cajvergara<varlistentry><term><errorcode>NETDB_SUCCESS</errorcode></term>
ee28309f0fe43e03bacd8fd1c7a573cd1ff534cajvergara<varlistentry><term><errorcode>HOST_NOT_FOUND</errorcode></term>
ee28309f0fe43e03bacd8fd1c7a573cd1ff534cajvergara<varlistentry><term><errorcode>TRY_AGAIN</errorcode></term>
ee28309f0fe43e03bacd8fd1c7a573cd1ff534cajvergara<varlistentry><term><errorcode>NO_RECOVERY</errorcode></term>
2401d3c2af505789c7c3b860a43e973f27731243jvergara<varlistentry><term><errorcode>NO_DATA</errorcode></term>
ee28309f0fe43e03bacd8fd1c7a573cd1ff534cajvergara<errorname>No address associated with name</errorname>
ee28309f0fe43e03bacd8fd1c7a573cd1ff534cajvergara</variablelist>
c9d984b0d2c0fda320e79eb3868dd6fbeb1ffa34jvergaraThe string <errorname>Unknown resolver error</errorname> is returned by
ee28309f0fe43e03bacd8fd1c7a573cd1ff534cajvergarawhen the value of
ee28309f0fe43e03bacd8fd1c7a573cd1ff534cajvergarais not a valid error code.
c9d984b0d2c0fda320e79eb3868dd6fbeb1ffa34jvergara<citerefentry>
ee28309f0fe43e03bacd8fd1c7a573cd1ff534cajvergara<refentrytitle>herror</refentrytitle><manvolnum>3</manvolnum>
c9d984b0d2c0fda320e79eb3868dd6fbeb1ffa34jvergara</citerefentry>,
ee28309f0fe43e03bacd8fd1c7a573cd1ff534cajvergara<citerefentry>
2401d3c2af505789c7c3b860a43e973f27731243jvergara<refentrytitle>lwres_hstrerror</refentrytitle><manvolnum>3</manvolnum>
ee28309f0fe43e03bacd8fd1c7a573cd1ff534cajvergara</citerefentry>.