50 unix_accept(
VALUE sock)
53 struct sockaddr_un from;
57 fromlen = (
socklen_t)
sizeof(
struct sockaddr_un);
59 (
struct sockaddr*)&from, &fromlen);
67 struct sockaddr_un from;
73 (
struct sockaddr *)&from, &fromlen);
95 unix_sysaccept(
VALUE sock)
98 struct sockaddr_un from;
102 fromlen = (
socklen_t)
sizeof(
struct sockaddr_un);
123 "__accept_nonblock", unix_accept_nonblock, 1);
VALUE rsock_init_unixsock(VALUE sock, VALUE path, int server)
VALUE rsock_sock_listen(VALUE sock, VALUE log)
void rb_define_private_method(VALUE klass, const char *name, VALUE(*func)(ANYARGS), int argc)
VALUE rsock_s_accept(VALUE klass, int fd, struct sockaddr *sockaddr, socklen_t *len)
#define GetOpenFile(obj, fp)
VALUE rsock_s_accept_nonblock(VALUE klass, VALUE ex, rb_io_t *fptr, struct sockaddr *sockaddr, socklen_t *len)
VALUE rb_define_class(const char *name, VALUE super)
Defines a top-level class.
void rsock_init_unixserver(void)
void rb_define_method(VALUE klass, const char *name, VALUE(*func)(ANYARGS), int argc)