Ruby  2.1.10p492(2016-04-01revision54464)
Macros | Functions
basicsocket.c File Reference
#include "rubysocket.h"

Go to the source code of this file.

Macros

#define bsock_getpeereid   rb_f_notimplement
 

Functions

static VALUE bsock_s_for_fd (VALUE klass, VALUE fd)
 
static VALUE bsock_shutdown (int argc, VALUE *argv, VALUE sock)
 
static VALUE bsock_close_read (VALUE sock)
 
static VALUE bsock_close_write (VALUE sock)
 
static VALUE bsock_setsockopt (int argc, VALUE *argv, VALUE sock)
 
static VALUE bsock_getsockopt (VALUE sock, VALUE lev, VALUE optname)
 
static VALUE bsock_getsockname (VALUE sock)
 
static VALUE bsock_getpeername (VALUE sock)
 
static VALUE bsock_local_address (VALUE sock)
 
static VALUE bsock_remote_address (VALUE sock)
 
VALUE rsock_bsock_send (int argc, VALUE *argv, VALUE sock)
 
static VALUE bsock_do_not_reverse_lookup (VALUE sock)
 
static VALUE bsock_do_not_reverse_lookup_set (VALUE sock, VALUE state)
 
static VALUE bsock_recv (int argc, VALUE *argv, VALUE sock)
 
static VALUE bsock_recv_nonblock (int argc, VALUE *argv, VALUE sock)
 
static VALUE bsock_do_not_rev_lookup (void)
 
static VALUE bsock_do_not_rev_lookup_set (VALUE self, VALUE val)
 
void rsock_init_basicsocket (void)
 

Macro Definition Documentation

#define bsock_getpeereid   rb_f_notimplement

Definition at line 455 of file basicsocket.c.

Referenced by rsock_init_basicsocket().

Function Documentation

static VALUE bsock_close_read ( VALUE  sock)
static
static VALUE bsock_close_write ( VALUE  sock)
static
static VALUE bsock_do_not_rev_lookup ( void  )
static

Definition at line 710 of file basicsocket.c.

References Qfalse, Qtrue, and rsock_do_not_reverse_lookup.

Referenced by rsock_init_basicsocket().

static VALUE bsock_do_not_rev_lookup_set ( VALUE  self,
VALUE  val 
)
static

Definition at line 732 of file basicsocket.c.

References rsock_do_not_reverse_lookup, RTEST, and val.

Referenced by rsock_init_basicsocket().

static VALUE bsock_do_not_reverse_lookup ( VALUE  sock)
static

Definition at line 590 of file basicsocket.c.

References FMODE_NOREVLOOKUP, GetOpenFile, rb_io_t::mode, Qfalse, and Qtrue.

Referenced by rsock_init_basicsocket().

static VALUE bsock_do_not_reverse_lookup_set ( VALUE  sock,
VALUE  state 
)
static

Definition at line 611 of file basicsocket.c.

References FMODE_NOREVLOOKUP, GetOpenFile, rb_io_t::mode, and RTEST.

Referenced by rsock_init_basicsocket().

static VALUE bsock_getpeername ( VALUE  sock)
static

Definition at line 386 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().

static VALUE bsock_getsockname ( VALUE  sock)
static

Definition at line 355 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().

static VALUE bsock_getsockopt ( VALUE  sock,
VALUE  lev,
VALUE  optname 
)
static
static VALUE bsock_local_address ( VALUE  sock)
static
static VALUE bsock_recv ( int  argc,
VALUE argv,
VALUE  sock 
)
static

Definition at line 645 of file basicsocket.c.

References RECV_RECV, and rsock_s_recvfrom().

Referenced by rsock_init_basicsocket().

static VALUE bsock_recv_nonblock ( int  argc,
VALUE argv,
VALUE  sock 
)
static

Definition at line 696 of file basicsocket.c.

References RECV_RECV, and rsock_s_recvfrom_nonblock().

Referenced by rsock_init_basicsocket().

static VALUE bsock_remote_address ( VALUE  sock)
static
static VALUE bsock_s_for_fd ( VALUE  klass,
VALUE  fd 
)
static

Definition at line 25 of file basicsocket.c.

References GetOpenFile, NUM2INT, rb_obj_alloc(), and rsock_init_sock().

Referenced by rsock_init_basicsocket().

static VALUE bsock_setsockopt ( int  argc,
VALUE argv,
VALUE  sock 
)
static
static VALUE bsock_shutdown ( int  argc,
VALUE argv,
VALUE  sock 
)
static
VALUE rsock_bsock_send ( int  argc,
VALUE argv,
VALUE  sock 
)
void rsock_init_basicsocket ( void  )