Ruby
2.5.0dev(2017-10-22revision60238)
|
Go to the source code of this file.
Macros | |
#define | VALIDATE_SOCKLEN(addr, len) ((void)(addr), (void)(len), 1) |
#define | SET_SA_LEN(sa, len) (void)(len) |
#define | SET_SIN_LEN(sa, len) SET_SA_LEN((struct sockaddr *)(sa), (len)) |
#define | SET_SIN6_LEN(sa, len) SET_SA_LEN((struct sockaddr *)(sa), (len)) |
#define | INIT_SOCKADDR(addr, family, len) |
#define | INIT_SOCKADDR_IN(addr, len) |
#define | INIT_SOCKADDR_IN6(addr, len) |
#define | IN_CLASSD(i) (((long)(i) & 0xf0000000) == 0xe0000000) |
#define | IN_MULTICAST(i) IN_CLASSD(i) |
#define | IN_EXPERIMENTAL(i) ((((long)(i)) & 0xe0000000) == 0xe0000000) |
#define | IN_CLASSA_NSHIFT 24 |
#define | IN_LOOPBACKNET 127 |
#define | AF_UNSPEC 0 |
#define | PF_UNSPEC AF_UNSPEC |
#define | PF_INET AF_INET |
#define AF_UNSPEC 0 |
Definition at line 101 of file sockport.h.
Referenced by rsock_family_to_int(), rsock_fd_family(), rsock_getfamily(), and rsock_inspect_sockaddr().
#define IN_CLASSA_NSHIFT 24 |
Definition at line 93 of file sockport.h.
#define IN_CLASSD | ( | i | ) | (((long)(i) & 0xf0000000) == 0xe0000000) |
Definition at line 84 of file sockport.h.
#define IN_EXPERIMENTAL | ( | i | ) | ((((long)(i)) & 0xe0000000) == 0xe0000000) |
Definition at line 89 of file sockport.h.
#define IN_LOOPBACKNET 127 |
Definition at line 97 of file sockport.h.
#define IN_MULTICAST | ( | i | ) | IN_CLASSD(i) |
Definition at line 85 of file sockport.h.
#define INIT_SOCKADDR | ( | addr, | |
family, | |||
len | |||
) |
Definition at line 38 of file sockport.h.
#define INIT_SOCKADDR_IN | ( | addr, | |
len | |||
) |
Definition at line 47 of file sockport.h.
#define INIT_SOCKADDR_IN6 | ( | addr, | |
len | |||
) |
Definition at line 56 of file sockport.h.
#define PF_INET AF_INET |
Definition at line 109 of file sockport.h.
Referenced by rsock_family_to_int().
#define PF_UNSPEC AF_UNSPEC |
Definition at line 105 of file sockport.h.
Referenced by rsock_family_to_int(), and rsock_syserr_fail_sockaddr().
Definition at line 22 of file sockport.h.
#define SET_SIN6_LEN | ( | sa, | |
len | |||
) | SET_SA_LEN((struct sockaddr *)(sa), (len)) |
Definition at line 35 of file sockport.h.
#define SET_SIN_LEN | ( | sa, | |
len | |||
) | SET_SA_LEN((struct sockaddr *)(sa), (len)) |
Definition at line 29 of file sockport.h.
Definition at line 16 of file sockport.h.
Referenced by getnameinfo().