Ruby
2.5.0dev(2017-10-22revision60238)
|
#include "ruby/config.h"
#include <sys/types.h>
#include <sys/param.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
#include <unistd.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <stddef.h>
#include <ctype.h>
#include "addrinfo.h"
#include "sockport.h"
Go to the source code of this file.
Data Structures | |
struct | sockinet |
struct | afd |
Macros | |
#define | SUCCESS 0 |
#define | ANY 0 |
#define | YES 1 |
#define | NO 0 |
#define | N_INET 0 |
#define | PTON_MAX 4 |
#define | GET_CANONNAME(ai, str) |
#define | GET_AI(ai, afd, addr, port) |
#define | ERR(err) { error = (err); goto bad; } |
Typedefs | |
typedef int | socklen_t |
Functions | |
char * | gai_strerror (int ecode) |
void | freeaddrinfo (struct addrinfo *ai) |
int | getaddrinfo (const char *hostname, const char *servname, const struct addrinfo *hints, struct addrinfo **res) |
#define ANY 0 |
Definition at line 90 of file getaddrinfo.c.
Definition at line 198 of file getaddrinfo.c.
Referenced by rb_print_backtrace().
#define GET_AI | ( | ai, | |
afd, | |||
addr, | |||
port | |||
) |
Definition at line 180 of file getaddrinfo.c.
#define GET_CANONNAME | ( | ai, | |
str | |||
) |
Definition at line 170 of file getaddrinfo.c.
#define N_INET 0 |
#define NO 0 |
Definition at line 92 of file getaddrinfo.c.
#define PTON_MAX 4 |
Definition at line 142 of file getaddrinfo.c.
Referenced by getaddrinfo().
#define SUCCESS 0 |
Definition at line 89 of file getaddrinfo.c.
#define YES 1 |
Definition at line 91 of file getaddrinfo.c.
typedef int socklen_t |
Definition at line 83 of file getaddrinfo.c.
void freeaddrinfo | ( | struct addrinfo * | ai | ) |
Definition at line 214 of file getaddrinfo.c.
References addrinfo::ai_canonname, addrinfo::ai_next, free(), and NULL.
Referenced by rb_freeaddrinfo().
char* gai_strerror | ( | int | ecode | ) |
Definition at line 205 of file getaddrinfo.c.
References EAI_MAX.
Referenced by rsock_raise_socket_error().