Ruby
2.5.0dev(2017-10-22revision60238)
|
#include "rubysocket.h"
Go to the source code of this file.
Macros | |
#define | pack_var(v) rb_str_new((const char *)&(v), sizeof(v)) |
#define | CAT(x, y) x##y |
#define | XCAT(x, y) CAT(x,y) |
#define | TYPE_IP_MULTICAST_LOOP byte |
#define | TYPE_IP_MULTICAST_TTL byte |
#define | USE_INSPECT_BYTE 1 |
#define | check_size(len, size) |
#define | inspect_ipv4_multicast_loop(a, b, c, d) XCAT(inspect_,TYPE_IP_MULTICAST_LOOP)(a,b,c,d) |
#define | inspect_ipv4_multicast_ttl(a, b, c, d) XCAT(inspect_,TYPE_IP_MULTICAST_TTL)(a,b,c,d) |
#define | IFNAMSIZ (sizeof(unsigned int)*3+1) |
Functions | |
VALUE | rsock_sockopt_new (int family, int level, int optname, VALUE data) |
const char * | inet_ntop (int af, const void *addr, char *numaddr, size_t numaddr_len) |
void | rsock_init_sockopt (void) |
Variables | |
VALUE | rb_cSockOpt |
#define IFNAMSIZ (sizeof(unsigned int)*3+1) |
Referenced by rsock_inspect_sockaddr().
#define inspect_ipv4_multicast_loop | ( | a, | |
b, | |||
c, | |||
d | |||
) | XCAT(inspect_,TYPE_IP_MULTICAST_LOOP)(a,b,c,d) |
#define inspect_ipv4_multicast_ttl | ( | a, | |
b, | |||
c, | |||
d | |||
) | XCAT(inspect_,TYPE_IP_MULTICAST_TTL)(a,b,c,d) |
#define pack_var | ( | v | ) | rb_str_new((const char *)&(v), sizeof(v)) |
void rsock_init_sockopt | ( | void | ) |
Definition at line 1438 of file option.c.
References rb_cObject, rb_cSocket, rb_cSockOpt, rb_define_class_under(), and rb_define_method().
Referenced by rsock_init_socket_init().
Definition at line 107 of file option.c.
References NEWOBJ_OF, rb_cSockOpt, StringValue, and T_OBJECT.
VALUE rb_cSockOpt |
Definition at line 3 of file option.c.
Referenced by rsock_init_sockopt(), and rsock_sockopt_new().