Ruby  1.9.3p484(2013-11-22revision43786)
Functions | Variables
constants.c File Reference
#include "rubysocket.h"
#include "constdefs.c"

Go to the source code of this file.

Functions

static int constant_arg (VALUE arg, int(*str_to_int)(const char *, long, int *), const char *errmsg)
 
int rsock_family_arg (VALUE domain)
 
int rsock_socktype_arg (VALUE type)
 
int rsock_level_arg (int family, VALUE level)
 
int rsock_optname_arg (int family, int level, VALUE optname)
 
int rsock_cmsg_type_arg (int family, int level, VALUE type)
 
int rsock_shutdown_how_arg (VALUE how)
 
void rsock_init_socket_constants (void)
 

Variables

static VALUE rb_mSockConst
 

Function Documentation

static int constant_arg ( VALUE  arg,
int(*)(const char *, long, int *)  str_to_int,
const char *  errmsg 
)
static
int rsock_cmsg_type_arg ( int  family,
int  level,
VALUE  type 
)

Definition at line 100 of file constants.c.

References constant_arg(), IS_IP_FAMILY, and NUM2INT.

int rsock_family_arg ( VALUE  domain)
void rsock_init_socket_constants ( void  )

Definition at line 141 of file constants.c.

Referenced by rsock_init_socket_init().

int rsock_level_arg ( int  family,
VALUE  level 
)
int rsock_optname_arg ( int  family,
int  level,
VALUE  optname 
)
int rsock_shutdown_how_arg ( VALUE  how)

Definition at line 131 of file constants.c.

References constant_arg().

Referenced by bsock_shutdown().

int rsock_socktype_arg ( VALUE  type)

Variable Documentation

VALUE rb_mSockConst
static

Definition at line 13 of file constants.c.