Ruby
2.1.10p492(2016-04-01revision54464)
|
#include "rubysocket.h"
Go to the source code of this file.
Macros | |
#define | inspect_ipv4_multicast_loop(a, b, c, d) inspect_int(a,b,c,d) |
#define | inspect_ipv4_multicast_ttl(a, b, c, d) inspect_int(a,b,c,d) |
#define | IFNAMSIZ (sizeof(unsigned int)*3+1) |
Variables | |
VALUE | rb_cSockOpt |
Referenced by getifaddrs(), rb_if_indextoname(), and rsock_inspect_sockaddr().
Definition at line 409 of file option.c.
Referenced by sockopt_inspect().
Definition at line 472 of file option.c.
Referenced by sockopt_inspect().
Definition at line 504 of file option.c.
References err, i, memcpy(), rb_str_catf(), RSTRING_LEN, RSTRING_PTR, and strerror().
Referenced by sockopt_inspect().
Definition at line 476 of file option.c.
References i, memcpy(), rb_str_catf(), RSTRING_LEN, and RSTRING_PTR.
Referenced by sockopt_inspect().
Definition at line 578 of file option.c.
References memcpy(), rb_str_catf(), RSTRING_LEN, RSTRING_PTR, timeval::tv_sec, and timeval::tv_usec.
Referenced by sockopt_inspect().
Definition at line 17 of file option.c.
References constant_to_sym(), and INT2NUM.
Referenced by sockopt_inspect().
Definition at line 1092 of file option.c.
References rb_cObject, rb_cSocket, rb_cSockOpt, rb_define_class_under(), rb_define_method(), rb_define_singleton_method(), sockopt_bool(), sockopt_byte(), sockopt_data(), sockopt_family_m(), sockopt_initialize(), sockopt_inspect(), sockopt_int(), sockopt_ipv4_multicast_loop(), sockopt_ipv4_multicast_ttl(), sockopt_level_m(), sockopt_linger(), sockopt_optname_m(), sockopt_s_bool(), sockopt_s_byte(), sockopt_s_int(), sockopt_s_ipv4_multicast_loop(), sockopt_s_ipv4_multicast_ttl(), sockopt_s_linger(), and sockopt_unpack().
Referenced by rsock_init_socket_init().
Definition at line 62 of file option.c.
References INT2NUM, NEWOBJ_OF, obj, rb_cSockOpt, sockopt_initialize(), StringValue, and T_OBJECT.
Referenced by bsock_getsockopt(), sockopt_s_bool(), sockopt_s_byte(), sockopt_s_int(), sockopt_s_ipv4_multicast_loop(), sockopt_s_ipv4_multicast_ttl(), and sockopt_s_linger().
Definition at line 268 of file option.c.
References data, i, len, memcpy(), Qfalse, Qtrue, rb_eTypeError, rb_raise(), RSTRING_LEN, RSTRING_PTR, sockopt_data(), and StringValue.
Referenced by rsock_init_sockopt().
Definition at line 178 of file option.c.
References CHR2FIX, data, i, rb_eTypeError, rb_raise(), RSTRING_LEN, RSTRING_PTR, sockopt_data(), and StringValue.
Referenced by rsock_init_sockopt(), sockopt_ipv4_multicast_loop(), and sockopt_ipv4_multicast_ttl().
Definition at line 138 of file option.c.
References rb_attr_get(), rb_intern, StringValue, and v.
Referenced by rsock_init_sockopt(), sockopt_bool(), sockopt_byte(), sockopt_inspect(), sockopt_int(), sockopt_linger(), and sockopt_unpack().
Definition at line 80 of file option.c.
References rb_attr_get(), and rb_intern.
Referenced by rsock_init_sockopt(), sockopt_inspect(), sockopt_ipv4_multicast_loop(), and sockopt_ipv4_multicast_ttl().
|
static |
Definition at line 48 of file option.c.
References INT2NUM, level, rb_intern, rb_ivar_set(), rsock_family_arg(), rsock_level_arg(), rsock_optname_arg(), and StringValue.
Referenced by rsock_init_sockopt(), and rsock_sockopt_new().
Definition at line 860 of file option.c.
References AF_UNSPEC, inspect_errno(), inspect_int(), inspect_ipv4_multicast_loop, inspect_ipv4_multicast_ttl, inspect_timeval_as_interval(), IS_IP_FAMILY, NUM2INT, optname_to_sym(), rb_id2name(), rb_obj_classname(), rb_sprintf(), rb_str_append(), rb_str_cat2(), rb_str_catf(), rb_str_dump(), ret, sockopt_data(), sockopt_family_m(), sockopt_level_m(), sockopt_optname_m(), StringValue, SYM2ID, SYMBOL_P, and v.
Referenced by rsock_init_sockopt().
Definition at line 222 of file option.c.
References data, i, INT2NUM, memcpy(), rb_eTypeError, rb_raise(), RSTRING_LEN, RSTRING_PTR, sockopt_data(), and StringValue.
Referenced by rsock_init_sockopt(), sockopt_ipv4_multicast_loop(), and sockopt_ipv4_multicast_ttl().
Definition at line 387 of file option.c.
References level, NUM2INT, rb_eTypeError, rb_raise(), sockopt_byte(), sockopt_family_m(), sockopt_int(), sockopt_level(), sockopt_optname(), and UNREACHABLE.
Referenced by rsock_init_sockopt().
Definition at line 450 of file option.c.
References level, NUM2INT, rb_eTypeError, rb_raise(), sockopt_byte(), sockopt_family_m(), sockopt_int(), sockopt_level(), sockopt_optname(), and UNREACHABLE.
Referenced by rsock_init_sockopt().
Definition at line 86 of file option.c.
References NUM2INT, rb_attr_get(), and rb_intern.
Referenced by sockopt_ipv4_multicast_loop(), sockopt_ipv4_multicast_ttl(), sockopt_level_m(), and sockopt_linger().
Definition at line 101 of file option.c.
References INT2NUM, and sockopt_level().
Referenced by rsock_init_sockopt(), and sockopt_inspect().
Definition at line 323 of file option.c.
References data, INT2NUM, level, memcpy(), Qfalse, Qtrue, rb_assoc_new(), rb_eTypeError, rb_raise(), RSTRING_LEN, RSTRING_PTR, sockopt_data(), sockopt_level(), and sockopt_optname().
Referenced by rsock_init_sockopt().
Definition at line 107 of file option.c.
References NUM2INT, rb_attr_get(), and rb_intern.
Referenced by sockopt_ipv4_multicast_loop(), sockopt_ipv4_multicast_ttl(), sockopt_linger(), and sockopt_optname_m().
Definition at line 122 of file option.c.
References INT2NUM, and sockopt_optname().
Referenced by rsock_init_sockopt(), and sockopt_inspect().
|
static |
Definition at line 249 of file option.c.
References i, level, rb_str_new(), rsock_family_arg(), rsock_level_arg(), rsock_optname_arg(), rsock_sockopt_new(), and RTEST.
Referenced by rsock_init_sockopt().
|
static |
Definition at line 157 of file option.c.
References i, level, NUM2CHR, rb_str_new(), rsock_family_arg(), rsock_level_arg(), rsock_optname_arg(), and rsock_sockopt_new().
Referenced by rsock_init_sockopt().
|
static |
Definition at line 201 of file option.c.
References i, level, NUM2INT, rb_str_new(), rsock_family_arg(), rsock_level_arg(), rsock_optname_arg(), and rsock_sockopt_new().
Referenced by rsock_init_sockopt().
Definition at line 362 of file option.c.
References i, NUM2CHR, NUM2INT, rb_str_new(), rb_to_int(), and rsock_sockopt_new().
Referenced by rsock_init_sockopt().
Definition at line 425 of file option.c.
References i, NUM2CHR, NUM2INT, rb_str_new(), rb_to_int(), and rsock_sockopt_new().
Referenced by rsock_init_sockopt().
Definition at line 300 of file option.c.
References AF_UNSPEC, memset(), NIL_P(), NUM2INT, rb_check_to_integer(), rb_str_new(), rsock_sockopt_new(), RTEST, and tmp.
Referenced by rsock_init_sockopt().
Definition at line 1086 of file option.c.
References rb_funcall(), rb_intern, and sockopt_data().
Referenced by rsock_init_sockopt().
VALUE rb_cSockOpt |
Definition at line 3 of file option.c.
Referenced by rsock_init_sockopt(), and rsock_sockopt_new().