Back to index

python3.2  3.2.2
Classes | Defines | Functions
addrinfo.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  addrinfo
struct  sockaddr_storage

Defines

#define EAI_ADDRFAMILY   1 /* address family for hostname not supported */
#define EAI_AGAIN   2 /* temporary failure in name resolution */
#define EAI_BADFLAGS   3 /* invalid value for ai_flags */
#define EAI_FAIL   4 /* non-recoverable failure in name resolution */
#define EAI_FAMILY   5 /* ai_family not supported */
#define EAI_MEMORY   6 /* memory allocation failure */
#define EAI_NODATA   7 /* no address associated with hostname */
#define EAI_NONAME   8 /* hostname nor servname provided, or not known */
#define EAI_SERVICE   9 /* servname not supported for ai_socktype */
#define EAI_SOCKTYPE   10 /* ai_socktype not supported */
#define EAI_SYSTEM   11 /* system error returned in errno */
#define EAI_BADHINTS   12
#define EAI_PROTOCOL   13
#define EAI_MAX   14
#define AI_PASSIVE   0x00000001 /* get address to use bind() */
#define AI_CANONNAME   0x00000002 /* fill ai_canonname */
#define AI_NUMERICHOST   0x00000004 /* prevent name resolution */
#define AI_MASK   (AI_PASSIVE | AI_CANONNAME | AI_NUMERICHOST)
#define AI_ALL   0x00000100 /* IPv6 and IPv4-mapped (with AI_V4MAPPED) */
#define AI_V4MAPPED_CFG   0x00000200 /* accept IPv4-mapped if kernel supports */
#define AI_ADDRCONFIG   0x00000400 /* only if any address is assigned */
#define AI_V4MAPPED   0x00000800 /* accept IPv4-mapped IPv6 address */
#define AI_DEFAULT   (AI_V4MAPPED_CFG | AI_ADDRCONFIG)
#define NI_MAXHOST   1025
#define NI_MAXSERV   32
#define NI_NOFQDN   0x00000001
#define NI_NUMERICHOST   0x00000002
#define NI_NAMEREQD   0x00000004
#define NI_NUMERICSERV   0x00000008
#define NI_DGRAM   0x00000010
#define _SS_MAXSIZE   128
#define _SS_ALIGNSIZE   (sizeof(double))
#define _SS_PAD1SIZE   (_SS_ALIGNSIZE - sizeof(u_char) * 2)
#define _SS_PAD2SIZE

Functions

void freehostent (struct hostent *)

Class Documentation

struct addrinfo

Definition at line 127 of file addrinfo.h.

Collaboration diagram for addrinfo:
Class Members
struct sockaddr * ai_addr
size_t ai_addrlen
char * ai_canonname
int ai_family
int ai_flags
struct addrinfo * ai_next
int ai_protocol
int ai_socktype
struct sockaddr_storage

Definition at line 153 of file addrinfo.h.

Class Members
double __ss_align
char __ss_pad1
char __ss_pad2
unsigned short ss_family

Define Documentation

#define _SS_ALIGNSIZE   (sizeof(double))

Definition at line 147 of file addrinfo.h.

#define _SS_MAXSIZE   128

Definition at line 143 of file addrinfo.h.

#define _SS_PAD1SIZE   (_SS_ALIGNSIZE - sizeof(u_char) * 2)

Definition at line 149 of file addrinfo.h.

#define _SS_PAD2SIZE
Value:

Definition at line 150 of file addrinfo.h.

#define AI_ADDRCONFIG   0x00000400 /* only if any address is assigned */

Definition at line 96 of file addrinfo.h.

#define AI_ALL   0x00000100 /* IPv6 and IPv4-mapped (with AI_V4MAPPED) */

Definition at line 94 of file addrinfo.h.

#define AI_CANONNAME   0x00000002 /* fill ai_canonname */

Definition at line 89 of file addrinfo.h.

Definition at line 99 of file addrinfo.h.

Definition at line 92 of file addrinfo.h.

#define AI_NUMERICHOST   0x00000004 /* prevent name resolution */

Definition at line 90 of file addrinfo.h.

#define AI_PASSIVE   0x00000001 /* get address to use bind() */

Definition at line 88 of file addrinfo.h.

#define AI_V4MAPPED   0x00000800 /* accept IPv4-mapped IPv6 address */

Definition at line 97 of file addrinfo.h.

#define AI_V4MAPPED_CFG   0x00000200 /* accept IPv4-mapped if kernel supports */

Definition at line 95 of file addrinfo.h.

#define EAI_ADDRFAMILY   1 /* address family for hostname not supported */

Definition at line 58 of file addrinfo.h.

#define EAI_AGAIN   2 /* temporary failure in name resolution */

Definition at line 59 of file addrinfo.h.

#define EAI_BADFLAGS   3 /* invalid value for ai_flags */

Definition at line 60 of file addrinfo.h.

#define EAI_BADHINTS   12

Definition at line 69 of file addrinfo.h.

#define EAI_FAIL   4 /* non-recoverable failure in name resolution */

Definition at line 61 of file addrinfo.h.

#define EAI_FAMILY   5 /* ai_family not supported */

Definition at line 62 of file addrinfo.h.

#define EAI_MAX   14

Definition at line 71 of file addrinfo.h.

#define EAI_MEMORY   6 /* memory allocation failure */

Definition at line 63 of file addrinfo.h.

#define EAI_NODATA   7 /* no address associated with hostname */

Definition at line 64 of file addrinfo.h.

#define EAI_NONAME   8 /* hostname nor servname provided, or not known */

Definition at line 65 of file addrinfo.h.

#define EAI_PROTOCOL   13

Definition at line 70 of file addrinfo.h.

#define EAI_SERVICE   9 /* servname not supported for ai_socktype */

Definition at line 66 of file addrinfo.h.

#define EAI_SOCKTYPE   10 /* ai_socktype not supported */

Definition at line 67 of file addrinfo.h.

#define EAI_SYSTEM   11 /* system error returned in errno */

Definition at line 68 of file addrinfo.h.

#define NI_DGRAM   0x00000010

Definition at line 121 of file addrinfo.h.

#define NI_MAXHOST   1025

Definition at line 109 of file addrinfo.h.

#define NI_MAXSERV   32

Definition at line 110 of file addrinfo.h.

#define NI_NAMEREQD   0x00000004

Definition at line 119 of file addrinfo.h.

#define NI_NOFQDN   0x00000001

Definition at line 117 of file addrinfo.h.

#define NI_NUMERICHOST   0x00000002

Definition at line 118 of file addrinfo.h.

#define NI_NUMERICSERV   0x00000008

Definition at line 120 of file addrinfo.h.


Function Documentation

void freehostent ( struct hostent *  )

Here is the caller graph for this function: