13 static VALUE rb_mSockConst;
18 constant_arg(
VALUE arg,
int (*str_to_int)(
const char*,
long,
int*),
const char *errmsg)
79 return constant_arg(optname, rsock_ipv6_optname_to_int,
"unknown IPv6 level option name");
110 return constant_arg(type, rsock_ipv6_optname_to_int,
"unknown IPv6 control message");
int rsock_udp_optname_to_int(const char *str, long len, int *valp)
void rb_raise(VALUE exc, const char *fmt,...)
int rsock_socktype_arg(VALUE type)
void rsock_init_socket_constants(void)
int rsock_so_optname_to_int(const char *str, long len, int *valp)
int rsock_family_arg(VALUE domain)
int rsock_level_arg(int family, VALUE level)
int rsock_unknown_level_to_int(const char *str, long len, int *valp)
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_shutdown_how_to_int(const char *str, long len, int *valp)
int rsock_tcp_optname_to_int(const char *str, long len, int *valp)
int rsock_ip_level_to_int(const char *str, long len, int *valp)
VALUE rb_check_string_type(VALUE)
void rb_check_safe_obj(VALUE)
int rsock_optname_arg(int family, int level, VALUE optname)
int rsock_ip_optname_to_int(const char *str, long len, int *valp)
int rsock_scm_optname_to_int(const char *str, long len, int *valp)
int rsock_shutdown_how_arg(VALUE how)
int rsock_cmsg_type_arg(int family, int level, VALUE type)