ext/socket/unixsocket.c File Reference

#include "rubysocket.h"

Go to the source code of this file.

Data Structures

struct  unixsock_arg
struct  iomsg_arg

Defines

#define FD_PASSING_BY_MSG_CONTROL   0
#define FD_PASSING_BY_MSG_ACCRIGHTS   0
#define unix_send_io   rb_f_notimplement
#define unix_recv_io   rb_f_notimplement

Functions

static VALUE unixsock_connect_internal (VALUE a)
VALUE rsock_init_unixsock (VALUE sock, VALUE path, int server)
static VALUE unix_init (VALUE sock, VALUE path)
static VALUE unix_path (VALUE sock)
static VALUE unix_recvfrom (int argc, VALUE *argv, VALUE sock)
static VALUE unix_addr (VALUE sock)
static VALUE unix_peeraddr (VALUE sock)
static VALUE unix_s_socketpair (int argc, VALUE *argv, VALUE klass)
void rsock_init_unixsocket (void)

Define Documentation

#define FD_PASSING_BY_MSG_ACCRIGHTS   0

Definition at line 170 of file unixsocket.c.

#define FD_PASSING_BY_MSG_CONTROL   0

Definition at line 164 of file unixsocket.c.

#define unix_recv_io   rb_f_notimplement

Definition at line 408 of file unixsocket.c.

Referenced by rsock_init_unixsocket().

#define unix_send_io   rb_f_notimplement

Definition at line 265 of file unixsocket.c.

Referenced by rsock_init_unixsocket().


Function Documentation

VALUE rsock_init_unixsock ( VALUE  sock,
VALUE  path,
int  server 
)
void rsock_init_unixsocket ( void   ) 
static VALUE unix_addr ( VALUE  sock  )  [static]

Definition at line 423 of file unixsocket.c.

References rb_io_t::fd, GetOpenFile, len, rb_sys_fail, and rsock_unixaddr().

Referenced by rsock_init_unixsocket().

static VALUE unix_init ( VALUE  sock,
VALUE  path 
) [static]

Definition at line 99 of file unixsocket.c.

References rsock_init_unixsock().

Referenced by rsock_init_unixsocket().

static VALUE unix_path ( VALUE  sock  )  [static]
static VALUE unix_peeraddr ( VALUE  sock  )  [static]

Definition at line 449 of file unixsocket.c.

References rb_io_t::fd, GetOpenFile, len, rb_sys_fail, and rsock_unixaddr().

Referenced by rsock_init_unixsocket().

static VALUE unix_recvfrom ( int  argc,
VALUE argv,
VALUE  sock 
) [static]

Definition at line 156 of file unixsocket.c.

References RECV_UNIX, and rsock_s_recvfrom().

Referenced by rsock_init_unixsocket().

static VALUE unix_s_socketpair ( int  argc,
VALUE argv,
VALUE  klass 
) [static]

Definition at line 483 of file unixsocket.c.

References args, INT2FIX, rb_scan_args(), rsock_sock_s_socketpair(), and type.

Referenced by rsock_init_unixsocket().

static VALUE unixsock_connect_internal ( VALUE  a  )  [static]

Generated on 27 Nov 2014 for Ruby by  doxygen 1.6.1