Ruby  3.1.0dev(2021-09-10revisionb76ad15ed0da636161de0243c547ee1e6fc95681)
Data Structures | Macros | Functions
ipsocket.c File Reference

(b76ad15ed0da636161de0243c547ee1e6fc95681)

#include "rubysocket.h"
Include dependency graph for ipsocket.c:

Go to the source code of this file.

Data Structures

struct  inetsock_arg
 

Macros

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

Functions

VALUE rsock_init_inetsock (VALUE sock, VALUE remote_host, VALUE remote_serv, VALUE local_host, VALUE local_serv, int type, VALUE resolv_timeout, VALUE connect_timeout)
 
int rsock_revlookup_flag (VALUE revlookup, int *norevlookup)
 
void rsock_init_ipsocket (void)
 

Macro Definition Documentation

◆ return_norevlookup

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

Function Documentation

◆ rsock_init_inetsock()

VALUE rsock_init_inetsock ( VALUE  sock,
VALUE  remote_host,
VALUE  remote_serv,
VALUE  local_host,
VALUE  local_serv,
int  type,
VALUE  resolv_timeout,
VALUE  connect_timeout 
)

◆ rsock_init_ipsocket()

void rsock_init_ipsocket ( void  )

Definition at line 386 of file ipsocket.c.

References rb_cBasicSocket, rb_cIPSocket, rb_define_class(), and rb_define_method.

Referenced by rsock_init_socket_init().

◆ rsock_revlookup_flag()

int rsock_revlookup_flag ( VALUE  revlookup,
int *  norevlookup 
)

Definition at line 194 of file ipsocket.c.

References id, Qfalse, Qnil, Qtrue, and return_norevlookup.