Ruby
2.5.0dev(2017-10-22revision60238)
|
#include "rubysocket.h"
Go to the source code of this file.
Macros | |
#define | rsock_sock_s_socketpair rb_f_notimplement |
#define | sock_gethostname rb_f_notimplement |
#define | socket_s_ip_address_list rb_f_notimplement |
Functions | |
void | rsock_sys_fail_host_port (const char *mesg, VALUE host, VALUE port) |
void | rsock_syserr_fail_host_port (int err, const char *mesg, VALUE host, VALUE port) |
void | rsock_sys_fail_path (const char *mesg, VALUE path) |
void | rsock_syserr_fail_path (int err, const char *mesg, VALUE path) |
void | rsock_sys_fail_sockaddr (const char *mesg, struct sockaddr *addr, socklen_t len) |
void | rsock_syserr_fail_sockaddr (int err, const char *mesg, struct sockaddr *addr, socklen_t len) |
void | rsock_sys_fail_raddrinfo (const char *mesg, VALUE rai) |
void | rsock_syserr_fail_raddrinfo (int err, const char *mesg, VALUE rai) |
void | rsock_sys_fail_raddrinfo_or_sockaddr (const char *mesg, VALUE addr, VALUE rai) |
void | rsock_syserr_fail_raddrinfo_or_sockaddr (int err, const char *mesg, VALUE addr, VALUE rai) |
VALUE | rsock_sock_listen (VALUE sock, VALUE log) |
void | Init_socket (void) |
#define rsock_sock_s_socketpair rb_f_notimplement |
#define sock_gethostname rb_f_notimplement |
#define socket_s_ip_address_list rb_f_notimplement |
void Init_socket | ( | void | ) |
Definition at line 1933 of file socket.c.
References rb_cBasicSocket, rb_cSocket, rb_define_class(), rb_define_method(), rsock_init_basicsocket(), and rsock_init_socket_init().
Definition at line 644 of file socket.c.
References rb_io_t::fd, GetOpenFile, INT2FIX, NUM2INT, and rb_sys_fail().
Referenced by rsock_init_unixserver().
Definition at line 18 of file socket.c.
References errno, and rsock_syserr_fail_host_port().
Definition at line 35 of file socket.c.
References errno, and rsock_syserr_fail_path().
Definition at line 71 of file socket.c.
References errno, and rsock_syserr_fail_raddrinfo().
Definition at line 88 of file socket.c.
References errno, and rsock_syserr_fail_raddrinfo_or_sockaddr().
Definition at line 55 of file socket.c.
References errno, and rsock_syserr_fail_sockaddr().
Definition at line 24 of file socket.c.
References PRIsVALUE, rb_sprintf(), and rb_syserr_fail_str().
Referenced by rsock_sys_fail_host_port().
Definition at line 41 of file socket.c.
References PRIsVALUE, rb_sprintf(), rb_syserr_fail(), rb_syserr_fail_str(), RB_TYPE_P, and T_STRING.
Referenced by rsock_sys_fail_path().
Definition at line 77 of file socket.c.
References PRIsVALUE, rb_sprintf(), rb_syserr_fail_str(), and rsock_addrinfo_inspect_sockaddr().
Referenced by rsock_sys_fail_raddrinfo(), rsock_syserr_fail_raddrinfo_or_sockaddr(), and rsock_syserr_fail_sockaddr().
Definition at line 94 of file socket.c.
References NIL_P, rsock_syserr_fail_raddrinfo(), rsock_syserr_fail_sockaddr(), RSTRING_LEN, RSTRING_PTR, and StringValue.
Referenced by rsock_sys_fail_raddrinfo_or_sockaddr().
void rsock_syserr_fail_sockaddr | ( | int | err, |
const char * | mesg, | ||
struct sockaddr * | addr, | ||
socklen_t | len | ||
) |
Definition at line 61 of file socket.c.
References PF_UNSPEC, Qnil, rsock_addrinfo_new(), and rsock_syserr_fail_raddrinfo().
Referenced by rsock_sys_fail_sockaddr(), and rsock_syserr_fail_raddrinfo_or_sockaddr().