Ruby
2.4.2p198(2017-09-14revision59899)
|
#include "rubysocket.h"
Go to the source code of this file.
Macros | |
#define | bsock_getpeereid rb_f_notimplement |
#define bsock_getpeereid rb_f_notimplement |
Definition at line 441 of file basicsocket.c.
Referenced by bsock_getpeername(), and rsock_init_basicsocket().
Definition at line 96 of file basicsocket.c.
References rb_io_t::fd, FMODE_READABLE, FMODE_WRITABLE, GetOpenFile, rb_io_t::mode, Qnil, rb_io_close(), and shutdown.
Referenced by rsock_init_basicsocket().
Definition at line 126 of file basicsocket.c.
References rb_io_t::fd, FMODE_READABLE, FMODE_WRITABLE, GetOpenFile, rb_io_t::mode, Qnil, rb_io_close(), and shutdown.
Referenced by rsock_init_basicsocket().
|
static |
Definition at line 660 of file basicsocket.c.
References Qfalse, Qtrue, and rsock_do_not_reverse_lookup.
Referenced by rsock_init_basicsocket().
Definition at line 682 of file basicsocket.c.
References rsock_do_not_reverse_lookup, RTEST, and val.
Referenced by rsock_init_basicsocket().
Definition at line 580 of file basicsocket.c.
References FMODE_NOREVLOOKUP, GetOpenFile, rb_io_t::mode, Qfalse, and Qtrue.
Referenced by rsock_init_basicsocket().
Definition at line 603 of file basicsocket.c.
References FMODE_NOREVLOOKUP, GetOpenFile, rb_io_t::mode, and RTEST.
Referenced by rsock_init_basicsocket().
Definition at line 372 of file basicsocket.c.
References union_sockaddr::addr, bsock_getpeereid, buf, rb_io_t::fd, GetOpenFile, GIDT2NUM, len, NULL, rb_assoc_new(), rb_str_new(), rb_sys_fail(), and UIDT2NUM.
Referenced by rsock_init_basicsocket().
Definition at line 341 of file basicsocket.c.
References union_sockaddr::addr, buf, rb_io_t::fd, GetOpenFile, len, rb_str_new(), and rb_sys_fail().
Referenced by rsock_init_basicsocket().
Definition at line 304 of file basicsocket.c.
References ALLOCA_N, buf, rb_io_t::fd, GetOpenFile, len, level, rb_io_t::pathv, rb_io_check_closed(), rb_str_new(), rsock_getfamily(), rsock_level_arg(), rsock_optname_arg(), rsock_sockopt_new(), and rsock_sys_fail_path().
Referenced by rsock_init_basicsocket().
Definition at line 462 of file basicsocket.c.
References union_sockaddr::addr, buf, rb_io_t::fd, GetOpenFile, len, rb_sys_fail(), and rsock_fd_socket_addrinfo().
Referenced by rsock_init_basicsocket().
Definition at line 639 of file basicsocket.c.
References RECV_RECV, and rsock_s_recvfrom().
Referenced by rsock_init_basicsocket().
Definition at line 646 of file basicsocket.c.
References RECV_RECV, and rsock_s_recvfrom_nonblock().
Referenced by rsock_init_basicsocket().
Definition at line 496 of file basicsocket.c.
References union_sockaddr::addr, buf, rb_io_t::fd, GetOpenFile, len, rb_sys_fail(), and rsock_fd_socket_addrinfo().
Referenced by rsock_init_basicsocket().
Definition at line 25 of file basicsocket.c.
References GetOpenFile, NUM2INT, rb_obj_alloc(), and rsock_init_sock().
Referenced by rsock_init_basicsocket().
Definition at line 198 of file basicsocket.c.
References rb_io_t::fd, FIX2INT, GetOpenFile, INT2FIX, level, rb_io_t::pathv, rb_funcall(), rb_intern, rb_io_check_closed(), rb_scan_args(), rsock_getfamily(), rsock_level_arg(), rsock_optname_arg(), rsock_sys_fail_path(), RSTRING_PTR, RSTRING_SOCKLEN, StringValue, T_FALSE, T_FIXNUM, T_TRUE, TYPE, and val.
Referenced by rsock_init_basicsocket().
Definition at line 63 of file basicsocket.c.
References rb_io_t::fd, GetOpenFile, INT2FIX, Qnil, rb_eArgError, rb_raise(), rb_scan_args(), rb_sys_fail(), rsock_shutdown_how_arg(), SHUT_RD, SHUT_RDWR, SHUT_WR, and shutdown.
Referenced by rsock_init_basicsocket().
Definition at line 528 of file basicsocket.c.
References BLOCKING_REGION_FD, rb_io_t::fd, rsock_send_arg::fd, rsock_send_arg::flags, func, GetOpenFile, INT2FIX, rsock_send_arg::mesg, NIL_P, NUM2INT, rb_io_wait_writable(), rb_scan_args(), rb_str_new4, rb_sys_fail(), rsock_maybe_fd_writable, rsock_send_blocking(), rsock_sendto_blocking(), RSTRING_PTR, RSTRING_SOCKLEN, SockAddrStringValue, StringValue, rsock_send_arg::to, and rsock_send_arg::tolen.
Referenced by rsock_init_basicsocket(), and udp_send().
void rsock_init_basicsocket | ( | void | ) |
Definition at line 689 of file basicsocket.c.
References bsock_close_read(), bsock_close_write(), bsock_do_not_rev_lookup(), bsock_do_not_rev_lookup_set(), bsock_do_not_reverse_lookup(), bsock_do_not_reverse_lookup_set(), bsock_getpeereid, bsock_getpeername(), bsock_getsockname(), bsock_getsockopt(), bsock_local_address(), bsock_recv(), bsock_recv_nonblock(), bsock_remote_address(), bsock_s_for_fd(), bsock_setsockopt(), bsock_shutdown(), rb_cBasicSocket, rb_cIO, rb_define_class(), rb_define_method(), rb_define_private_method(), rb_define_singleton_method(), rb_undef_method(), rsock_bsock_recvmsg, rsock_bsock_recvmsg_nonblock, rsock_bsock_send(), rsock_bsock_sendmsg, and rsock_bsock_sendmsg_nonblock.
Referenced by Init_socket().