Ruby 2.0.0p247(2013-06-27revision41674)

- Main Page
- Modules
- Data Structures
- Files

- File List
- Globals

Macros
sockport.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

## Macros
#define | SA_LEN(sa) (sizeof(struct sockaddr))
#define | SS_LEN(ss) (sizeof(struct sockaddr))
#define | SET_SA_LEN(sa, len) (void)(len)
#define | SET_SS_LEN(ss, len) (void)(len)
#define | SIN_LEN(si) sizeof(struct sockaddr_in)
#define | SET_SIN_LEN(si, 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

## Macro Definition Documentation

#define AF_UNSPEC 0

Definition at line 69 of file sockport.h.

Referenced by get_addr(), get_afamily(), init_constants(), open_ifs_socket(), rsock_addrinfo(), rsock_family_to_int(), rsock_getfamily(), sockopt_inspect(), and sockopt_s_linger().

#define IN_CLASSA_NSHIFT 24

Definition at line 61 of file sockport.h.

Referenced by getaddrinfo(), and getnameinfo().

#define IN_CLASSD | ( |  | i) |  | (((long)(i) & 0xf0000000) == 0xe0000000)

Definition at line 52 of file sockport.h.

#define IN_EXPERIMENTAL | ( |  | i) |  | ((((long)(i)) & 0xe0000000) == 0xe0000000)

Definition at line 57 of file sockport.h.

Referenced by getaddrinfo(), and getnameinfo().

#define IN_LOOPBACKNET 127

Definition at line 65 of file sockport.h.

Referenced by getaddrinfo().

#define IN_MULTICAST | ( |  | i) |  | IN_CLASSD(i)

Definition at line 53 of file sockport.h.

Referenced by getaddrinfo(), and getnameinfo().

#define PF_INET AF_INET

Definition at line 77 of file sockport.h.

Referenced by addrinfo_inspect(), getaddrinfo(), init_constants(), rsock_family_to_int(), and socketpair_internal().

#define PF_UNSPEC AF_UNSPEC

Definition at line 73 of file sockport.h.

Referenced by addrinfo_initialize(), addrinfo_s_ip(), addrinfo_s_tcp(), addrinfo_s_udp(), call_getaddrinfo(), getaddrinfo(), init_constants(), rsock_family_to_int(), sock_s_getaddrinfo(), and sock_s_getnameinfo().

#define SA_LEN | ( |  | sa) |  | (sizeof(struct sockaddr))

Definition at line 29 of file sockport.h.

Referenced by getnameinfo(), make_ipaddr0(), rsock_ipaddr(), and sock_s_getnameinfo().

#define SET_SA_LEN | ( |  | sa,
|  |  | len
| ) |  | (void)(len)

Definition at line 39 of file sockport.h.

#define SET_SIN_LEN | ( |  | si,
|  |  | len
| ) |  |

Definition at line 48 of file sockport.h.

Referenced by make_inetaddr().

#define SET_SS_LEN | ( |  | ss,
|  |  | len
| ) |  | (void)(len)

Definition at line 40 of file sockport.h.

#define SIN_LEN | ( |  | si) |  | sizeof(struct sockaddr_in)

Definition at line 47 of file sockport.h.

#define SS_LEN | ( |  | ss) |  | (sizeof(struct sockaddr))

Definition at line 30 of file sockport.h.

Referenced by sock_s_getnameinfo().