Data Structures | Functions

ext/socket/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

Functions

static VALUE udp_init (int argc, VALUE *argv, VALUE sock)
static VALUE udp_connect_internal (struct udp_arg *arg)
VALUE rsock_freeaddrinfo (struct addrinfo *addr)
static VALUE udp_connect (VALUE sock, VALUE host, VALUE port)
static VALUE udp_bind (VALUE sock, VALUE host, VALUE port)
static VALUE udp_send (int argc, VALUE *argv, VALUE sock)
static VALUE udp_recvfrom_nonblock (int argc, VALUE *argv, VALUE sock)
void rsock_init_udpsocket (void)

Function Documentation

VALUE rsock_freeaddrinfo ( struct addrinfo addr  ) 

Definition at line 489 of file raddrinfo.c.

References freeaddrinfo().

Referenced by rsock_make_hostent(), and udp_connect().

void rsock_init_udpsocket ( void   ) 
static VALUE udp_bind ( VALUE  sock,
VALUE  host,
VALUE  port 
) [static]
static VALUE udp_connect ( VALUE  sock,
VALUE  host,
VALUE  port 
) [static]
static VALUE udp_connect_internal ( struct udp_arg arg  )  [static]
static VALUE udp_init ( int  argc,
VALUE argv,
VALUE  sock 
) [static]
static VALUE udp_recvfrom_nonblock ( int  argc,
VALUE argv,
VALUE  sock 
) [static]

Definition at line 244 of file udpsocket.c.

References RECV_IP, and rsock_s_recvfrom_nonblock().

Referenced by rsock_init_udpsocket().

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