Ruby  2.0.0p247(2013-06-27revision41674)
Data Structures | Defines | Functions | Variables
ext/socket/ipsocket.c File Reference
#include "rubysocket.h"

Go to the source code of this file.

Data Structures

struct  inetsock_arg

Defines

#define return_norevlookup(x)   {*norevlookup = (x); return 1;}

Functions

static VALUE inetsock_cleanup (struct inetsock_arg *arg)
static VALUE init_inetsock_internal (struct inetsock_arg *arg)
VALUE rsock_init_inetsock (VALUE sock, VALUE remote_host, VALUE remote_serv, VALUE local_host, VALUE local_serv, int type)
int rsock_revlookup_flag (VALUE revlookup, int *norevlookup)
static VALUE ip_addr (int argc, VALUE *argv, VALUE sock)
static VALUE ip_peeraddr (int argc, VALUE *argv, VALUE sock)
static VALUE ip_recvfrom (int argc, VALUE *argv, VALUE sock)
static VALUE ip_s_getaddress (VALUE obj, VALUE host)
void rsock_init_ipsocket (void)

Variables

static ID id_numeric
static ID id_hostname

Define Documentation

#define return_norevlookup (   x)    {*norevlookup = (x); return 1;}

Referenced by rsock_revlookup_flag().


Function Documentation

static VALUE inetsock_cleanup ( struct inetsock_arg arg) [static]
static VALUE init_inetsock_internal ( struct inetsock_arg arg) [static]
static VALUE ip_addr ( int  argc,
VALUE argv,
VALUE  sock 
) [static]
static VALUE ip_peeraddr ( int  argc,
VALUE argv,
VALUE  sock 
) [static]
static VALUE ip_recvfrom ( int  argc,
VALUE argv,
VALUE  sock 
) [static]

Definition at line 263 of file ipsocket.c.

References RECV_IP, and rsock_s_recvfrom().

Referenced by rsock_init_ipsocket().

static VALUE ip_s_getaddress ( VALUE  obj,
VALUE  host 
) [static]
VALUE rsock_init_inetsock ( VALUE  sock,
VALUE  remote_host,
VALUE  remote_serv,
VALUE  local_host,
VALUE  local_serv,
int  type 
)
void rsock_init_ipsocket ( void  )
int rsock_revlookup_flag ( VALUE  revlookup,
int *  norevlookup 
)

Variable Documentation

ID id_hostname [static]

Definition at line 137 of file ipsocket.c.

Referenced by rsock_init_ipsocket(), and rsock_revlookup_flag().

ID id_numeric [static]

Definition at line 137 of file ipsocket.c.

Referenced by rsock_init_ipsocket(), and rsock_revlookup_flag().