53 udp_connect_internal(
struct udp_arg *arg)
100 udp_bind_internal(
struct udp_arg *arg)
199 VALUE flags, host, port;
203 if (argc == 2 || argc == 3) {
243 "__recvfrom_nonblock", udp_recvfrom_nonblock, 4);
struct rsock_send_arg sarg
void rsock_init_udpsocket(void)
VALUE rsock_sendto_blocking(void *data)
void rb_define_private_method(VALUE klass, const char *name, VALUE(*func)(ANYARGS), int argc)
VALUE rsock_init_sock(VALUE sock, int fd)
#define rsock_maybe_fd_writable(fd)
VALUE rb_ensure(VALUE(*b_proc)(ANYARGS), VALUE data1, VALUE(*e_proc)(ANYARGS), VALUE data2)
An equivalent to ensure clause.
VALUE rsock_s_recvfrom_nonblock(VALUE sock, VALUE len, VALUE flg, VALUE str, VALUE ex, enum sock_recv_type from)
#define GetOpenFile(obj, fp)
VALUE rsock_bsock_send(int argc, VALUE *argv, VALUE sock)
struct rb_addrinfo * rsock_addrinfo(VALUE host, VALUE port, int family, int socktype, int flags)
int rsock_family_arg(VALUE domain)
int rsock_socket(int domain, int type, int proto)
VALUE rb_define_class(const char *name, VALUE super)
Defines a top-level class.
int rb_io_wait_writable(int)
VALUE rsock_freeaddrinfo(VALUE arg)
void rb_sys_fail(const char *mesg)
int rb_scan_args(int argc, const VALUE *argv, const char *fmt,...)
void rsock_sys_fail_host_port(const char *mesg, VALUE host, VALUE port)
register unsigned int len
int rsock_fd_family(int fd)
int rsock_connect(int fd, const struct sockaddr *sockaddr, int len, int socks)
struct addrinfo * ai_next
void rb_define_method(VALUE klass, const char *name, VALUE(*func)(ANYARGS), int argc)
void rb_io_check_closed(rb_io_t *)
struct sockaddr * ai_addr
#define BLOCKING_REGION_FD(func, arg)