Ruby  2.4.2p198(2017-09-14revision59899)
Data Structures | Functions
udpsocket.c File Reference
#include "rubysocket.h"
Include dependency graph for udpsocket.c:

Go to the source code of this file.

Data Structures

struct  udp_arg
 
struct  udp_send_arg
 

Functions

static VALUE udp_init (int argc, VALUE *argv, VALUE sock)
 
static VALUE udp_connect_internal (struct udp_arg *arg)
 
static VALUE udp_connect (VALUE sock, VALUE host, VALUE port)
 
static VALUE udp_bind_internal (struct udp_arg *arg)
 
static VALUE udp_bind (VALUE sock, VALUE host, VALUE port)
 
static VALUE udp_send_internal (struct udp_send_arg *arg)
 
static VALUE udp_send (int argc, VALUE *argv, VALUE sock)
 
static VALUE udp_recvfrom_nonblock (VALUE sock, VALUE len, VALUE flg, VALUE str, VALUE ex)
 
void rsock_init_udpsocket (void)
 

Function Documentation

◆ rsock_init_udpsocket()

void rsock_init_udpsocket ( void  )

◆ udp_bind()

static VALUE udp_bind ( VALUE  sock,
VALUE  host,
VALUE  port 
)
static

◆ udp_bind_internal()

static VALUE udp_bind_internal ( struct udp_arg arg)
static

◆ udp_connect()

static VALUE udp_connect ( VALUE  sock,
VALUE  host,
VALUE  port 
)
static

◆ udp_connect_internal()

static VALUE udp_connect_internal ( struct udp_arg arg)
static

◆ udp_init()

static VALUE udp_init ( int  argc,
VALUE argv,
VALUE  sock 
)
static

◆ udp_recvfrom_nonblock()

static VALUE udp_recvfrom_nonblock ( VALUE  sock,
VALUE  len,
VALUE  flg,
VALUE  str,
VALUE  ex 
)
static

Definition at line 221 of file udpsocket.c.

References RECV_IP, and rsock_s_recvfrom_nonblock().

Referenced by rsock_init_udpsocket().

◆ udp_send()

static VALUE udp_send ( int  argc,
VALUE argv,
VALUE  sock 
)
static

◆ udp_send_internal()

static VALUE udp_send_internal ( struct udp_send_arg arg)
static