ext/socket/tcpserver.c File Reference

#include "rubysocket.h"

Go to the source code of this file.

Functions

static VALUE tcp_svr_init (int argc, VALUE *argv, VALUE sock)
static VALUE tcp_accept (VALUE sock)
static VALUE tcp_accept_nonblock (VALUE sock)
static VALUE tcp_sysaccept (VALUE sock)
void rsock_init_tcpserver (void)

Function Documentation

void rsock_init_tcpserver ( void   ) 
static VALUE tcp_accept ( VALUE  sock  )  [static]

Definition at line 56 of file tcpserver.c.

References union_sockaddr::addr, rb_io_t::fd, GetOpenFile, rb_cTCPSocket, and rsock_s_accept().

Referenced by rsock_init_tcpserver().

static VALUE tcp_accept_nonblock ( VALUE  sock  )  [static]

Definition at line 101 of file tcpserver.c.

References union_sockaddr::addr, GetOpenFile, rb_cTCPSocket, and rsock_s_accept_nonblock().

Referenced by rsock_init_tcpserver().

static VALUE tcp_svr_init ( int  argc,
VALUE *  argv,
VALUE  sock 
) [static]

Definition at line 34 of file tcpserver.c.

References INET_SERVER, Qnil, rb_scan_args(), and rsock_init_inetsock().

Referenced by rsock_init_tcpserver().

static VALUE tcp_sysaccept ( VALUE  sock  )  [static]

Definition at line 127 of file tcpserver.c.

References union_sockaddr::addr, rb_io_t::fd, GetOpenFile, and rsock_s_accept().

Referenced by rsock_init_tcpserver().


Generated on 18 May 2020 for Ruby by  doxygen 1.6.1