2 - Copyright (C) 2004 Internet Systems Consortium, Inc. ("ISC")
3 - Copyright (C) 2001 Internet Software Consortium.
5 - Permission to use, copy, modify, and distribute this software for any
6 - purpose with or without fee is hereby granted, provided that the above
7 - copyright notice and this permission notice appear in all copies.
9 - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
10 - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
11 - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
12 - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
13 - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
14 - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
15 - PERFORMANCE OF THIS SOFTWARE.
18 <!-- $Id: lwres_hstrerror.html,v 1.5.2.2 2004/03/15 04:45:03 marka Exp $ -->
23 >lwres_hstrerror
</TITLE
26 CONTENT=
"Modular DocBook HTML Stylesheet Version 1.73
47 >lwres_herror, lwres_hstrerror
--
lightweight resolver error message generation
</DIV
49 CLASS=
"REFSYNOPSISDIV"
63 CLASS=
"FUNCSYNOPSISINFO"
64 >#include
<lwres/netdb.h
></PRE
71 >(const char *s);
</CODE
105 > followed by the string
108 >lwres_hstrerror()
</TT
110 stored in the global variable
<TT
117 >lwres_hstrerror()
</TT
118 > returns an appropriate string
119 for the error code gievn by
<TT
125 the error codes and messages are as follows:
141 >Resolver Error
0 (no error)
</SPAN
147 >HOST_NOT_FOUND
</SPAN
165 >Host name lookup failure
</SPAN
177 >Unknown server error
</SPAN
189 >No address associated with name
</SPAN
206 >Unknown resolver error
</SPAN
210 >lwres_hstrerror()
</TT
217 is not a valid error code.
</P
230 CLASS=
"REFENTRYTITLE"
238 CLASS=
"REFENTRYTITLE"
239 >lwres_hstrerror
</SPAN