ext/socket/addrinfo.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  addrinfo

Defines

#define __P(args)   ()
#define EAI_ADDRFAMILY   1
#define EAI_AGAIN   2
#define EAI_BADFLAGS   3
#define EAI_FAIL   4
#define EAI_FAMILY   5
#define EAI_MEMORY   6
#define EAI_NODATA   7
#define EAI_NONAME   8
#define EAI_SERVICE   9
#define EAI_SOCKTYPE   10
#define EAI_SYSTEM   11
#define EAI_BADHINTS   12
#define EAI_PROTOCOL   13
#define EAI_MAX   14
#define AI_PASSIVE   0x00000001
#define AI_CANONNAME   0x00000002
#define AI_NUMERICHOST   0x00000004
#define AI_NUMERICSERV   0x00000008
#define AI_MASK   (AI_PASSIVE | AI_CANONNAME | AI_NUMERICHOST | AI_NUMERICSERV)
#define AI_ALL   0x00000100
#define AI_V4MAPPED_CFG   0x00000200
#define AI_ADDRCONFIG   0x00000400
#define AI_V4MAPPED   0x00000800
#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 getaddrinfo   getaddrinfo__compat
#define getnameinfo   getnameinfo__compat
#define freehostent   freehostent__compat
#define freeaddrinfo   freeaddrinfo__compat
#define offsetof(p_type, field)   ((size_t)&(((p_type *)0)->field))

Functions

int getaddrinfo __P ((const char *hostname, const char *servname, const struct addrinfo *hints, struct addrinfo **res))
int getnameinfo __P ((const struct sockaddr *sa, socklen_t salen, char *host, socklen_t hostlen, char *serv, socklen_t servlen, int flags))
void freehostent __P ((struct hostent *))
void freeaddrinfo __P ((struct addrinfo *))
char *gai_strerror __P ((int))


Define Documentation

#define __P ( args   )     ()

Definition at line 68 of file addrinfo.h.

#define AI_ADDRCONFIG   0x00000400

Definition at line 108 of file addrinfo.h.

Referenced by get_addr(), and init_constants().

#define AI_ALL   0x00000100

Definition at line 106 of file addrinfo.h.

Referenced by get_addr(), and init_constants().

#define AI_CANONNAME   0x00000002

Definition at line 97 of file addrinfo.h.

Referenced by init_constants(), sock_s_gethostbyname(), and tcp_s_gethostbyname().

#define AI_DEFAULT   (AI_V4MAPPED_CFG | AI_ADDRCONFIG)

Definition at line 111 of file addrinfo.h.

Referenced by init_constants().

#define AI_MASK   (AI_PASSIVE | AI_CANONNAME | AI_NUMERICHOST | AI_NUMERICSERV)

Definition at line 103 of file addrinfo.h.

Referenced by getaddrinfo(), and init_constants().

#define AI_NUMERICHOST   0x00000004

Definition at line 98 of file addrinfo.h.

Referenced by addrinfo_initialize(), addrinfo_mload(), host_str(), init_constants(), and sock_s_getnameinfo().

#define AI_NUMERICSERV   0x00000008

Definition at line 99 of file addrinfo.h.

Referenced by addrinfo_initialize(), addrinfo_mload(), getaddrinfo(), init_constants(), and port_str().

#define AI_PASSIVE   0x00000001

Definition at line 96 of file addrinfo.h.

Referenced by getaddrinfo(), init_constants(), and init_inetsock_internal().

#define AI_V4MAPPED   0x00000800

Definition at line 109 of file addrinfo.h.

Referenced by get_addr(), and init_constants().

#define AI_V4MAPPED_CFG   0x00000200

Definition at line 107 of file addrinfo.h.

Referenced by init_constants().

#define EAI_ADDRFAMILY   1

Definition at line 78 of file addrinfo.h.

Referenced by init_constants().

#define EAI_AGAIN   2

Definition at line 79 of file addrinfo.h.

Referenced by get_addr(), and init_constants().

#define EAI_BADFLAGS   3

Definition at line 80 of file addrinfo.h.

Referenced by getaddrinfo(), and init_constants().

#define EAI_BADHINTS   12

Definition at line 89 of file addrinfo.h.

Referenced by getaddrinfo(), and init_constants().

#define EAI_FAIL   4

Definition at line 81 of file addrinfo.h.

Referenced by get_addr(), and init_constants().

#define EAI_FAMILY   5

Definition at line 82 of file addrinfo.h.

Referenced by getaddrinfo(), and init_constants().

#define EAI_MAX   14

Definition at line 91 of file addrinfo.h.

Referenced by gai_strerror(), and init_constants().

#define EAI_MEMORY   6

Definition at line 83 of file addrinfo.h.

Referenced by init_constants().

#define EAI_NODATA   7

Definition at line 84 of file addrinfo.h.

Referenced by get_addr(), and init_constants().

#define EAI_NONAME   8

Definition at line 85 of file addrinfo.h.

Referenced by getaddrinfo(), and init_constants().

#define EAI_PROTOCOL   13

Definition at line 90 of file addrinfo.h.

Referenced by getaddrinfo(), and init_constants().

#define EAI_SERVICE   9

Definition at line 86 of file addrinfo.h.

Referenced by getaddrinfo(), and init_constants().

#define EAI_SOCKTYPE   10

Definition at line 87 of file addrinfo.h.

Referenced by getaddrinfo(), and init_constants().

#define EAI_SYSTEM   11

Definition at line 88 of file addrinfo.h.

Referenced by init_constants(), and rsock_raise_socket_error().

#define freeaddrinfo   freeaddrinfo__compat

Definition at line 157 of file addrinfo.h.

Referenced by addrinfo_firstonly_new(), get_name(), inetsock_cleanup(), init_addrinfo_getaddrinfo(), ip_s_getaddress(), rsock_freeaddrinfo(), sock_s_getaddrinfo(), sock_s_getnameinfo(), sock_s_pack_sockaddr_in(), udp_bind(), and udp_send().

#define freehostent   freehostent__compat

Definition at line 153 of file addrinfo.h.

Referenced by get_name(), and getnameinfo().

#define getaddrinfo   getaddrinfo__compat

Definition at line 145 of file addrinfo.h.

Referenced by nogvl_getaddrinfo(), and rb_getaddrinfo().

#define getnameinfo   getnameinfo__compat

Definition at line 149 of file addrinfo.h.

Referenced by addrinfo_getnameinfo(), addrinfo_mdump(), inspect_sockaddr(), nogvl_getnameinfo(), and rb_getnameinfo().

#define NI_DGRAM   0x00000010

Definition at line 128 of file addrinfo.h.

Referenced by addrinfo_getnameinfo(), getnameinfo(), init_constants(), and sock_s_getnameinfo().

#define NI_MAXHOST   1025

Definition at line 117 of file addrinfo.h.

Referenced by addrinfo_mdump(), init_constants(), make_hostent_internal(), make_inspectname(), and rsock_getaddrinfo().

#define NI_MAXSERV   32

Definition at line 118 of file addrinfo.h.

Referenced by addrinfo_mdump(), init_constants(), make_inspectname(), and rsock_getaddrinfo().

#define NI_NAMEREQD   0x00000004

Definition at line 126 of file addrinfo.h.

Referenced by getnameinfo(), and init_constants().

#define NI_NOFQDN   0x00000001

Definition at line 124 of file addrinfo.h.

Referenced by getnameinfo(), and init_constants().

#define NI_NUMERICHOST   0x00000002

Definition at line 125 of file addrinfo.h.

Referenced by addrinfo_ip_address(), addrinfo_ip_unpack(), addrinfo_mdump(), getnameinfo(), init_constants(), inspect_sockaddr(), make_inspectname(), make_ipaddr0(), and rsock_ipaddr().

#define NI_NUMERICSERV   0x00000008

Definition at line 127 of file addrinfo.h.

Referenced by addrinfo_ip_address(), addrinfo_ip_unpack(), addrinfo_mdump(), getnameinfo(), init_constants(), inspect_sockaddr(), make_inspectname(), and rsock_ipaddr().

#define offsetof ( p_type,
field   )     ((size_t)&(((p_type *)0)->field))

Definition at line 186 of file addrinfo.h.


Function Documentation

char* gai_strerror __P ( (int)   ) 

void freeaddrinfo __P ( (struct addrinfo *)   ) 

void freehostent __P ( (struct hostent *)   ) 

int getnameinfo __P ( (const struct sockaddr *sa, socklen_t salen, char *host, socklen_t hostlen, char *serv, socklen_t servlen, int flags)   ) 

int getaddrinfo __P ( (const char *hostname, const char *servname, const struct addrinfo *hints, struct addrinfo **res)   ) 


Generated on Wed Aug 10 09:18:20 2011 for Ruby by  doxygen 1.4.7