#include "ruby/config.h"#include <stdio.h>#include <sys/types.h>#include <winsock2.h>#include <ws2tcpip.h>#include <string.h>#include <stddef.h>#include "addrinfo.h"#include "sockport.h"Go to the source code of this file.
Data Structures | |
| struct | sockinet |
| struct | afd |
Defines | |
| #define | snprintf _snprintf |
| #define | SUCCESS 0 |
| #define | ANY 0 |
| #define | YES 1 |
| #define | NO 0 |
| #define | N_INET6 0 |
| #define | N_INET 1 |
| #define | ENI_NOSOCKET 0 |
| #define | ENI_NOSERVNAME 1 |
| #define | ENI_NOHOSTNAME 2 |
| #define | ENI_MEMORY 3 |
| #define | ENI_SYSTEM 4 |
| #define | ENI_FAMILY 5 |
| #define | ENI_SALEN 6 |
Functions | |
| int | getnameinfo (const struct sockaddr *sa, socklen_t salen, char *host, socklen_t hostlen, char *serv, socklen_t servlen, int flags) |
Variables | |
| static struct afd | afdl [] |
| #define ANY 0 |
Definition at line 78 of file getnameinfo.c.
| #define ENI_FAMILY 5 |
Definition at line 114 of file getnameinfo.c.
Referenced by getnameinfo().
| #define ENI_MEMORY 3 |
Definition at line 112 of file getnameinfo.c.
Referenced by getnameinfo().
| #define ENI_NOHOSTNAME 2 |
Definition at line 111 of file getnameinfo.c.
Referenced by getnameinfo().
| #define ENI_NOSERVNAME 1 |
Definition at line 110 of file getnameinfo.c.
Referenced by getnameinfo().
| #define ENI_NOSOCKET 0 |
Definition at line 109 of file getnameinfo.c.
Referenced by getnameinfo().
| #define ENI_SALEN 6 |
Definition at line 115 of file getnameinfo.c.
Referenced by getnameinfo().
| #define ENI_SYSTEM 4 |
Definition at line 113 of file getnameinfo.c.
Referenced by getnameinfo().
| #define N_INET 1 |
| #define N_INET6 0 |
| #define NO 0 |
Definition at line 80 of file getnameinfo.c.
| #define snprintf _snprintf |
Definition at line 64 of file getnameinfo.c.
Referenced by append_utf8(), BigMath_s_log(), control_frame_dump(), date_strftime_with_tmx(), enc_set_filesystem_encoding(), err_position_0(), fmt_setup(), get_device_once(), get_syserr(), getnameinfo(), lcid_installed(), mSyslog_inspect(), ossl_make_error(), ossl_sslctx_initialize(), output_hex_charref(), parser_yylex(), port_str(), raise_from_check(), raise_zlib_error(), rb_compile_warn(), rb_compile_warning(), rb_dlptr_inspect(), rb_if_indextoname(), rb_iseq_disasm(), rb_locale_charmap(), rb_num2long(), rb_num2ulong(), rb_reg_expr_str(), rb_str_buf_cat_escaped_char(), rb_str_dump(), rb_str_format(), rb_str_inspect(), rb_strftime_with_timespec(), rb_sys_warning(), rb_w32_inet_ntop(), rb_w32_pipe(), rb_warn(), rb_warning(), register_label(), ruby_setenv(), sock_s_getnameinfo(), strscan_inspect(), unescape_escaped_nonascii(), and w_float().
| #define SUCCESS 0 |
Definition at line 77 of file getnameinfo.c.
| #define YES 1 |
Definition at line 79 of file getnameinfo.c.
| int getnameinfo | ( | const struct sockaddr * | sa, | |
| socklen_t | salen, | |||
| char * | host, | |||
| socklen_t | hostlen, | |||
| char * | serv, | |||
| socklen_t | servlen, | |||
| int | flags | |||
| ) |
Definition at line 136 of file getnameinfo.c.
References afd::a_addrlen, afd::a_af, afd::a_off, afd::a_socklen, afdl, ENI_FAMILY, ENI_MEMORY, ENI_NOHOSTNAME, ENI_NOSERVNAME, ENI_NOSOCKET, ENI_SALEN, ENI_SYSTEM, freehostent, if(), IN_CLASSA_NSHIFT, IN_EXPERIMENTAL, IN_MULTICAST, len, NI_DGRAM, NI_NAMEREQD, NI_NOFQDN, NI_NUMERICHOST, NI_NUMERICSERV, NULL, SA_LEN, snprintf, strchr(), strlen(), SUCCESS, u_long, and u_short.
Referenced by getnameinfo().
1.6.1