ext/socket/constdefs.c File Reference

Go to the source code of this file.

Defines

#define INTEGER2NUM(n)

Functions

static void init_constants (void)
int rsock_family_to_int (const char *str, long len, int *valp)
int rsock_socktype_to_int (const char *str, long len, int *valp)
int rsock_ipproto_to_int (const char *str, long len, int *valp)
int rsock_unknown_level_to_int (const char *str, long len, int *valp)
int rsock_ip_level_to_int (const char *str, long len, int *valp)
int rsock_so_optname_to_int (const char *str, long len, int *valp)
int rsock_ip_optname_to_int (const char *str, long len, int *valp)
int rsock_tcp_optname_to_int (const char *str, long len, int *valp)
int rsock_udp_optname_to_int (const char *str, long len, int *valp)
int rsock_shutdown_how_to_int (const char *str, long len, int *valp)
int rsock_scm_optname_to_int (const char *str, long len, int *valp)
ID rsock_intern_family (int val)
ID rsock_intern_family_noprefix (int val)
ID rsock_intern_protocol_family (int val)
ID rsock_intern_socktype (int val)
ID rsock_intern_ipproto (int val)
ID rsock_intern_iplevel (int val)
ID rsock_intern_so_optname (int val)
ID rsock_intern_ip_optname (int val)
ID rsock_intern_ipv6_optname (int val)
ID rsock_intern_tcp_optname (int val)
ID rsock_intern_udp_optname (int val)
ID rsock_intern_scm_optname (int val)
ID rsock_intern_local_optname (int val)

Variables

static st_tablersock_intern_family_hash
static st_tablersock_intern_family_noprefix_hash
static st_tablersock_intern_protocol_family_hash
static st_tablersock_intern_socktype_hash
static st_tablersock_intern_ipproto_hash
static st_tablersock_intern_iplevel_hash
static st_tablersock_intern_so_optname_hash
static st_tablersock_intern_ip_optname_hash
static st_tablersock_intern_ipv6_optname_hash
static st_tablersock_intern_tcp_optname_hash
static st_tablersock_intern_udp_optname_hash
static st_tablersock_intern_scm_optname_hash
static st_tablersock_intern_local_optname_hash


Define Documentation

#define INTEGER2NUM (  ) 

Value:

(FIXNUM_MAX < (n) ? ULONG2NUM(n) : \
     FIXNUM_MIN > (long)(n) ? LONG2NUM(n) : \
     LONG2FIX(n))

Definition at line 23 of file constdefs.c.

Referenced by init_constants().


Function Documentation

static void init_constants ( void   )  [static]

Definition at line 30 of file constdefs.c.

References AF_UNSPEC, AI_ADDRCONFIG, AI_ALL, AI_CANONNAME, AI_DEFAULT, AI_MASK, AI_NUMERICHOST, AI_NUMERICSERV, AI_PASSIVE, AI_V4MAPPED, AI_V4MAPPED_CFG, EAI_ADDRFAMILY, EAI_AGAIN, EAI_BADFLAGS, EAI_BADHINTS, EAI_FAIL, EAI_FAMILY, EAI_MAX, EAI_MEMORY, EAI_NODATA, EAI_NONAME, EAI_PROTOCOL, EAI_SERVICE, EAI_SOCKTYPE, EAI_SYSTEM, IFNAMSIZ, INADDR_ALLHOSTS_GROUP, INADDR_ANY, INADDR_BROADCAST, INADDR_LOOPBACK, INADDR_MAX_LOCAL_GROUP, INADDR_NONE, INADDR_UNSPEC_GROUP, INET6_ADDRSTRLEN, INET_ADDRSTRLEN, INTEGER2NUM, IPPORT_RESERVED, IPPORT_USERRESERVED, IPPROTO_ICMP, IPPROTO_IP, IPPROTO_RAW, IPPROTO_TCP, IPPROTO_UDP, NI_DGRAM, NI_MAXHOST, NI_MAXSERV, NI_NAMEREQD, NI_NOFQDN, NI_NUMERICHOST, NI_NUMERICSERV, PF_INET, PF_UNSPEC, rb_cSocket, rb_define_const(), rb_define_module_under(), rb_intern2(), rb_mSockConst, rsock_intern_family_hash, rsock_intern_family_noprefix_hash, rsock_intern_ip_optname_hash, rsock_intern_iplevel_hash, rsock_intern_ipproto_hash, rsock_intern_ipv6_optname_hash, rsock_intern_local_optname_hash, rsock_intern_protocol_family_hash, rsock_intern_scm_optname_hash, rsock_intern_so_optname_hash, rsock_intern_socktype_hash, rsock_intern_tcp_optname_hash, rsock_intern_udp_optname_hash, SHUT_RD, SHUT_RDWR, SHUT_WR, SOMAXCONN, st_data_t, st_init_numtable(), and st_insert().

Referenced by rsock_init_socket_constants().

int rsock_family_to_int ( const char *  str,
long  len,
int *  valp 
)

Definition at line 4096 of file constdefs.c.

References AF_UNSPEC, memcmp(), PF_INET, and PF_UNSPEC.

Referenced by addrinfo_initialize(), addrinfo_mload(), and rsock_family_arg().

ID rsock_intern_family ( int  val  ) 

Definition at line 6142 of file constdefs.c.

References name, rsock_intern_family_hash, st_data_t, and st_lookup().

Referenced by addrinfo_mdump(), rsock_inspect_sockaddr(), and rsock_ipaddr().

ID rsock_intern_family_noprefix ( int  val  ) 

Definition at line 6151 of file constdefs.c.

References name, rsock_intern_family_noprefix_hash, st_data_t, and st_lookup().

Referenced by sockopt_inspect().

ID rsock_intern_ip_optname ( int  val  ) 

Definition at line 6205 of file constdefs.c.

References name, rsock_intern_ip_optname_hash, st_data_t, and st_lookup().

Referenced by optname_to_sym().

ID rsock_intern_iplevel ( int  val  ) 

Definition at line 6187 of file constdefs.c.

References name, rsock_intern_iplevel_hash, st_data_t, and st_lookup().

Referenced by sockopt_inspect().

ID rsock_intern_ipproto ( int  val  ) 

Definition at line 6178 of file constdefs.c.

References name, rsock_intern_ipproto_hash, st_data_t, and st_lookup().

Referenced by addrinfo_inspect(), and addrinfo_mdump().

ID rsock_intern_ipv6_optname ( int  val  ) 

Definition at line 6214 of file constdefs.c.

References name, rsock_intern_ipv6_optname_hash, st_data_t, and st_lookup().

Referenced by optname_to_sym().

ID rsock_intern_local_optname ( int  val  ) 

Definition at line 6250 of file constdefs.c.

References name, rsock_intern_local_optname_hash, st_data_t, and st_lookup().

Referenced by sockopt_inspect().

ID rsock_intern_protocol_family ( int  val  ) 

Definition at line 6160 of file constdefs.c.

References name, rsock_intern_protocol_family_hash, st_data_t, and st_lookup().

Referenced by addrinfo_inspect(), and addrinfo_mdump().

ID rsock_intern_scm_optname ( int  val  ) 

Definition at line 6241 of file constdefs.c.

References name, rsock_intern_scm_optname_hash, st_data_t, and st_lookup().

ID rsock_intern_so_optname ( int  val  ) 

Definition at line 6196 of file constdefs.c.

References name, rsock_intern_so_optname_hash, st_data_t, and st_lookup().

Referenced by optname_to_sym(), and sockopt_inspect().

ID rsock_intern_socktype ( int  val  ) 

Definition at line 6169 of file constdefs.c.

References name, rsock_intern_socktype_hash, st_data_t, and st_lookup().

Referenced by addrinfo_inspect(), and addrinfo_mdump().

ID rsock_intern_tcp_optname ( int  val  ) 

Definition at line 6223 of file constdefs.c.

References name, rsock_intern_tcp_optname_hash, st_data_t, and st_lookup().

Referenced by optname_to_sym().

ID rsock_intern_udp_optname ( int  val  ) 

Definition at line 6232 of file constdefs.c.

References name, rsock_intern_udp_optname_hash, st_data_t, and st_lookup().

Referenced by optname_to_sym().

int rsock_ip_level_to_int ( const char *  str,
long  len,
int *  valp 
)

Definition at line 4790 of file constdefs.c.

References IPPROTO_ICMP, IPPROTO_IP, IPPROTO_RAW, IPPROTO_TCP, IPPROTO_UDP, and memcmp().

Referenced by rsock_level_arg().

int rsock_ip_optname_to_int ( const char *  str,
long  len,
int *  valp 
)

Definition at line 5326 of file constdefs.c.

References memcmp().

Referenced by rsock_cmsg_type_arg(), and rsock_optname_arg().

int rsock_ipproto_to_int ( const char *  str,
long  len,
int *  valp 
)

Definition at line 4560 of file constdefs.c.

References IPPROTO_ICMP, IPPROTO_IP, IPPROTO_RAW, IPPROTO_TCP, IPPROTO_UDP, and memcmp().

Referenced by addrinfo_mload().

int rsock_scm_optname_to_int ( const char *  str,
long  len,
int *  valp 
)

Definition at line 6065 of file constdefs.c.

References memcmp().

Referenced by rsock_cmsg_type_arg().

int rsock_shutdown_how_to_int ( const char *  str,
long  len,
int *  valp 
)

Definition at line 6025 of file constdefs.c.

References memcmp(), SHUT_RD, SHUT_RDWR, and SHUT_WR.

Referenced by rsock_shutdown_how_arg().

int rsock_so_optname_to_int ( const char *  str,
long  len,
int *  valp 
)

Definition at line 5004 of file constdefs.c.

References memcmp().

Referenced by rsock_optname_arg().

int rsock_socktype_to_int ( const char *  str,
long  len,
int *  valp 
)

Definition at line 4490 of file constdefs.c.

References memcmp().

Referenced by addrinfo_mload(), and rsock_socktype_arg().

int rsock_tcp_optname_to_int ( const char *  str,
long  len,
int *  valp 
)

Definition at line 5864 of file constdefs.c.

References memcmp().

Referenced by rsock_cmsg_type_arg(), and rsock_optname_arg().

int rsock_udp_optname_to_int ( const char *  str,
long  len,
int *  valp 
)

Definition at line 6003 of file constdefs.c.

References memcmp().

Referenced by rsock_cmsg_type_arg(), and rsock_optname_arg().

int rsock_unknown_level_to_int ( const char *  str,
long  len,
int *  valp 
)

Definition at line 4768 of file constdefs.c.

References memcmp().

Referenced by rsock_level_arg().


Variable Documentation

st_table* rsock_intern_family_hash [static]

Definition at line 3 of file constdefs.c.

Referenced by init_constants(), and rsock_intern_family().

st_table* rsock_intern_family_noprefix_hash [static]

Definition at line 4 of file constdefs.c.

Referenced by init_constants(), and rsock_intern_family_noprefix().

st_table* rsock_intern_ip_optname_hash [static]

Definition at line 10 of file constdefs.c.

Referenced by init_constants(), and rsock_intern_ip_optname().

st_table* rsock_intern_iplevel_hash [static]

Definition at line 8 of file constdefs.c.

Referenced by init_constants(), and rsock_intern_iplevel().

st_table* rsock_intern_ipproto_hash [static]

Definition at line 7 of file constdefs.c.

Referenced by init_constants(), and rsock_intern_ipproto().

st_table* rsock_intern_ipv6_optname_hash [static]

Definition at line 11 of file constdefs.c.

Referenced by init_constants(), and rsock_intern_ipv6_optname().

st_table* rsock_intern_local_optname_hash [static]

Definition at line 15 of file constdefs.c.

Referenced by init_constants(), and rsock_intern_local_optname().

st_table* rsock_intern_protocol_family_hash [static]

Definition at line 5 of file constdefs.c.

Referenced by init_constants(), and rsock_intern_protocol_family().

st_table* rsock_intern_scm_optname_hash [static]

Definition at line 14 of file constdefs.c.

Referenced by init_constants(), and rsock_intern_scm_optname().

st_table* rsock_intern_so_optname_hash [static]

Definition at line 9 of file constdefs.c.

Referenced by init_constants(), and rsock_intern_so_optname().

st_table* rsock_intern_socktype_hash [static]

Definition at line 6 of file constdefs.c.

Referenced by init_constants(), and rsock_intern_socktype().

st_table* rsock_intern_tcp_optname_hash [static]

Definition at line 12 of file constdefs.c.

Referenced by init_constants(), and rsock_intern_tcp_optname().

st_table* rsock_intern_udp_optname_hash [static]

Definition at line 13 of file constdefs.c.

Referenced by init_constants(), and rsock_intern_udp_optname().


Generated on 19 Jul 2016 for Ruby by  doxygen 1.4.7