Ruby
1.9.3p448(2013-06-27revision41675)
|
Go to the source code of this file.
Functions | |
static int | constant_arg (VALUE arg, int(*str_to_int)(const char *, long, int *), const char *errmsg) |
int | rsock_family_arg (VALUE domain) |
int | rsock_socktype_arg (VALUE type) |
int | rsock_level_arg (int family, VALUE level) |
int | rsock_optname_arg (int family, int level, VALUE optname) |
int | rsock_cmsg_type_arg (int family, int level, VALUE type) |
int | rsock_shutdown_how_arg (VALUE how) |
void | rsock_init_socket_constants (void) |
Variables | |
static VALUE | rb_mSockConst |
|
static |
Definition at line 18 of file constants.c.
References NIL_P, NUM2INT, rb_check_safe_obj(), rb_check_string_type(), rb_eSocket, rb_raise(), rb_sym_to_s(), RSTRING_LEN, RSTRING_PTR, and SYMBOL_P.
Referenced by rsock_cmsg_type_arg(), rsock_family_arg(), rsock_level_arg(), rsock_optname_arg(), rsock_shutdown_how_arg(), and rsock_socktype_arg().
int rsock_cmsg_type_arg | ( | int | family, |
int | level, | ||
VALUE | type | ||
) |
Definition at line 100 of file constants.c.
References constant_arg(), IS_IP_FAMILY, and NUM2INT.
int rsock_family_arg | ( | VALUE | domain | ) |
Definition at line 43 of file constants.c.
References constant_arg().
Referenced by addrinfo_initialize(), call_getaddrinfo(), setup_domain_and_type(), sock_s_getaddrinfo(), sock_s_gethostbyaddr(), sock_s_getnameinfo(), sockopt_initialize(), sockopt_s_bool(), sockopt_s_int(), and udp_init().
void rsock_init_socket_constants | ( | void | ) |
Definition at line 141 of file constants.c.
Referenced by rsock_init_socket_init().
int rsock_level_arg | ( | int | family, |
VALUE | level | ||
) |
Definition at line 57 of file constants.c.
References constant_arg(), and IS_IP_FAMILY.
Referenced by bsock_getsockopt(), bsock_setsockopt(), sockopt_initialize(), sockopt_s_bool(), and sockopt_s_int().
int rsock_optname_arg | ( | int | family, |
int | level, | ||
VALUE | optname | ||
) |
Definition at line 69 of file constants.c.
References constant_arg(), IS_IP_FAMILY, and NUM2INT.
Referenced by bsock_getsockopt(), bsock_setsockopt(), sockopt_initialize(), sockopt_s_bool(), and sockopt_s_int().
int rsock_shutdown_how_arg | ( | VALUE | how | ) |
Definition at line 131 of file constants.c.
References constant_arg().
Referenced by bsock_shutdown().
int rsock_socktype_arg | ( | VALUE | type | ) |
Definition at line 50 of file constants.c.
References constant_arg().
Referenced by addrinfo_initialize(), call_getaddrinfo(), setup_domain_and_type(), and sock_s_getaddrinfo().
|
static |
Definition at line 13 of file constants.c.