#include <stdint.h>
#include <sys/socket.h>
Go to the source code of this file.
|
struct hostent * | gethostbyname (const char *name) |
|
struct hostent * | gethostbyaddr (const void *addr, socklen_t len, int type) |
|
struct hostent * | gethostent (void) |
|
struct servent * | getservbyname (const char *name, const char *proto) |
|
struct servent * | getservbyport (int port, const char *proto) |
|
struct servent * | getservent (void) |
|
int | getaddrinfo (const char *node, const char *service, const struct addrinfo *hints, struct addrinfo **res) |
|
void | freeaddrinfo (struct addrinfo *res) |
|
int | getnameinfo (const struct sockaddr *addr, socklen_t addrlen, char *host, socklen_t hostlen, char *serv, socklen_t servlen, int flags) |
|
const char * | gai_strerror (int ecode) |
|
◆ hostent
Definition at line 7 of file netdb.h.
Data Fields |
char * |
h_name |
|
char ** |
h_aliases |
|
int |
h_addrtype |
|
int |
h_length |
|
char ** |
h_addr_list |
|
◆ servent
Definition at line 17 of file netdb.h.
Data Fields |
char * |
s_name |
|
char ** |
s_aliases |
|
int |
s_port |
|
char * |
s_proto |
|
◆ addrinfo
Definition at line 25 of file netdb.h.
Data Fields |
int |
ai_flags |
|
int |
ai_family |
|
int |
ai_socktype |
|
int |
ai_protocol |
|
socklen_t |
ai_addrlen |
|
char * |
ai_canonname |
|
struct sockaddr * |
ai_addr |
|
struct addrinfo * |
ai_next |
|
◆ h_addr
#define h_addr h_addr_list[0] |
◆ NETDB_INTERNAL
#define NETDB_INTERNAL -1 |
◆ NETDB_SUCCESS
◆ HOST_NOT_FOUND
◆ TRY_AGAIN
◆ NO_RECOVERY
◆ NO_DATA
◆ NO_ADDRESS
◆ EAI_ADDRFAMILY
◆ EAI_AGAIN
◆ EAI_BADFLAGS
◆ EAI_FAIL
◆ EAI_FAMILY
◆ EAI_MEMORY
◆ EAI_NODATA
◆ EAI_NONAME
◆ EAI_SERVICE
◆ EAI_SOCKTYPE
◆ EAI_SYSTEM
◆ EAI_BADHINTS
◆ EAI_PROTOCOL
◆ EAI_OVERFLOW
◆ EAI_MAX
◆ NI_MAXHOST
◆ NI_MAXSERV
◆ NI_NOFQDN
◆ NI_NUMERICHOST
#define NI_NUMERICHOST 0x0002 |
◆ NI_NAMEREQD
#define NI_NAMEREQD 0x0004 |
◆ NI_NUMERICSERV
#define NI_NUMERICSERV 0x0008 |
◆ NI_DGRAM
◆ NI_NUMERICSCOPE
#define NI_NUMERICSCOPE 0x0020 |
◆ AI_PASSIVE
#define AI_PASSIVE 0x0001 |
◆ AI_CANONNAME
#define AI_CANONNAME 0x0002 |
◆ AI_NUMERICHOST
#define AI_NUMERICHOST 0x0004 |
◆ AI_V4MAPPED
#define AI_V4MAPPED 0x0008 |
◆ AI_ALL
◆ AI_ADDRCONFIG
#define AI_ADDRCONFIG 0x0020 |
◆ gethostbyname()
struct hostent* gethostbyname |
( |
const char * |
name | ) |
|
◆ gethostbyaddr()
◆ gethostent()
struct hostent* gethostent |
( |
void |
| ) |
|
◆ getservbyname()
struct servent* getservbyname |
( |
const char * |
name, |
|
|
const char * |
proto |
|
) |
| |
◆ getservbyport()
struct servent* getservbyport |
( |
int |
port, |
|
|
const char * |
proto |
|
) |
| |
◆ getservent()
struct servent* getservent |
( |
void |
| ) |
|
◆ getaddrinfo()
int getaddrinfo |
( |
const char * |
node, |
|
|
const char * |
service, |
|
|
const struct addrinfo * |
hints, |
|
|
struct addrinfo ** |
res |
|
) |
| |
◆ freeaddrinfo()
void freeaddrinfo |
( |
struct addrinfo * |
res | ) |
|
◆ getnameinfo()
◆ gai_strerror()
const char* gai_strerror |
( |
int |
ecode | ) |
|
◆ h_errno