Ruby  2.1.10p492(2016-04-01revision54464)
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

◆ constant_arg()

static int constant_arg ( VALUE  arg,
int(*)(const char *, long, int *)  str_to_int,
const char *  errmsg 
)
static

◆ rsock_cmsg_type_arg()

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, level, NUM2INT, and type.

◆ rsock_family_arg()

int rsock_family_arg ( VALUE  domain)

◆ rsock_init_socket_constants()

void rsock_init_socket_constants ( void  )

Definition at line 141 of file constants.c.

Referenced by rsock_init_socket_init().

◆ rsock_level_arg()

int rsock_level_arg ( int  family,
VALUE  level 
)

◆ rsock_optname_arg()

int rsock_optname_arg ( int  family,
int  level,
VALUE  optname 
)

◆ rsock_shutdown_how_arg()

int rsock_shutdown_how_arg ( VALUE  how)

Definition at line 131 of file constants.c.

References constant_arg().

Referenced by bsock_shutdown().

◆ rsock_socktype_arg()

int rsock_socktype_arg ( VALUE  type)

Definition at line 50 of file constants.c.

References constant_arg(), and type.

Referenced by addrinfo_initialize(), call_getaddrinfo(), setup_domain_and_type(), and sock_s_getaddrinfo().

Variable Documentation

◆ rb_mSockConst

VALUE rb_mSockConst
static

Definition at line 13 of file constants.c.