/[svn]/ircd-hybrid-7.2/include/irc_getaddrinfo.h
ViewVC logotype

Contents of /ircd-hybrid-7.2/include/irc_getaddrinfo.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 34 - (show annotations)
Sun Oct 2 21:05:51 2005 UTC (14 years ago) by lusky
File MIME type: text/x-csrc
File size: 2969 byte(s)
create 7.2 branch, we can move/rename it as needed.


1 /*
2 * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright
11 * notice, this list of conditions and the following disclaimer in the
12 * documentation and/or other materials provided with the distribution.
13 * 3. Neither the name of the project nor the names of its contributors
14 * may be used to endorse or promote products derived from this software
15 * without specific prior written permission.
16 *
17 * THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND
18 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20 * ARE DISCLAIMED. IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE
21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
29 * $Id$
30 */
31
32 extern int irc_getaddrinfo(const char *hostname, const char *servname,
33 const struct addrinfo *hints, struct addrinfo **res);
34 extern void irc_freeaddrinfo(struct addrinfo *ai);
35
36 #define SUCCESS 0
37 #define ANY 0
38 #define YES 1
39 #define NO 0
40
41 #undef EAI_ADDRFAMILY
42 #undef EAI_AGAIN
43 #undef EAI_BADFLAGS
44 #undef EAI_FAIL
45 #undef EAI_FAMILY
46 #undef EAI_MEMORY
47 #undef EAI_NODATA
48 #undef EAI_NONAME
49 #undef EAI_SERVICE
50 #undef EAI_SOCKTYPE
51 #undef EAI_SYSTEM
52 #undef EAI_BADHINTS
53 #undef EAI_PROTOCOL
54 #undef EAI_MAX
55 #undef AI_MASK
56
57 #define EAI_ADDRFAMILY 1 /* address family for hostname not supported */
58 #define EAI_AGAIN 2 /* temporary failure in name resolution */
59 #define EAI_BADFLAGS 3 /* invalid value for ai_flags */
60 #define EAI_FAIL 4 /* non-recoverable failure in name resolution */
61 #define EAI_FAMILY 5 /* ai_family not supported */
62 #define EAI_MEMORY 6 /* memory allocation failure */
63 #define EAI_NODATA 7 /* no address associated with hostname */
64 #define EAI_NONAME 8 /* hostname nor servname provided, or not known */
65 #define EAI_SERVICE 9 /* servname not supported for ai_socktype */
66 #define EAI_SOCKTYPE 10 /* ai_socktype not supported */
67 #define EAI_SYSTEM 11 /* system error returned in errno */
68 #define EAI_BADHINTS 12
69 #define EAI_PROTOCOL 13
70 #define EAI_MAX 14
71 #define AI_MASK (AI_PASSIVE | AI_NUMERICHOST)

Properties

Name Value
svn:eol-style native
svn:keywords Id Revision

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.26