wut  v1.7.0
Wii U Toolchain
Data Structures | Macros | Functions | Variables
netdb.h File Reference
#include <stdint.h>
#include <sys/socket.h>
Include dependency graph for netdb.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  hostent
 
struct  servent
 
struct  addrinfo
 

Macros

#define h_addr   h_addr_list[0]
 
#define NETDB_INTERNAL   -1
 
#define NETDB_SUCCESS   0
 
#define HOST_NOT_FOUND   1
 
#define TRY_AGAIN   2
 
#define NO_RECOVERY   3
 
#define NO_DATA   4
 
#define NO_ADDRESS   NO_DATA
 
#define EAI_ADDRFAMILY   1
 
#define EAI_AGAIN   2
 
#define EAI_BADFLAGS   3
 
#define EAI_FAIL   4
 
#define EAI_FAMILY   5
 
#define EAI_MEMORY   6
 
#define EAI_NODATA   7
 
#define EAI_NONAME   8
 
#define EAI_SERVICE   9
 
#define EAI_SOCKTYPE   10
 
#define EAI_SYSTEM   11
 
#define EAI_BADHINTS   12
 
#define EAI_PROTOCOL   13
 
#define EAI_OVERFLOW   14
 
#define EAI_MAX   15
 
#define NI_MAXHOST   1025
 
#define NI_MAXSERV   32
 
#define NI_NOFQDN   0x0001
 
#define NI_NUMERICHOST   0x0002
 
#define NI_NAMEREQD   0x0004
 
#define NI_NUMERICSERV   0x0008
 
#define NI_DGRAM   0x0010
 
#define NI_NUMERICSCOPE   0x0020
 
#define AI_PASSIVE   0x0001
 
#define AI_CANONNAME   0x0002
 
#define AI_NUMERICHOST   0x0004
 
#define AI_V4MAPPED   0x0008
 
#define AI_ALL   0x0010
 
#define AI_ADDRCONFIG   0x0020
 

Functions

struct hostentgethostbyname (const char *name)
 
struct hostentgethostbyaddr (const void *addr, socklen_t len, int type)
 
struct hostentgethostent (void)
 
struct serventgetservbyname (const char *name, const char *proto)
 
struct serventgetservbyport (int port, const char *proto)
 
struct serventgetservent (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)
 

Variables

int h_errno
 

Data Structure Documentation

◆ hostent

struct 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

struct servent

Definition at line 17 of file netdb.h.

Data Fields
char * s_name
char ** s_aliases
int s_port
char * s_proto

◆ addrinfo

struct 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

Macro Definition Documentation

◆ h_addr

#define h_addr   h_addr_list[0]

Definition at line 14 of file netdb.h.

◆ NETDB_INTERNAL

#define NETDB_INTERNAL   -1

Definition at line 37 of file netdb.h.

◆ NETDB_SUCCESS

#define NETDB_SUCCESS   0

Definition at line 38 of file netdb.h.

◆ HOST_NOT_FOUND

#define HOST_NOT_FOUND   1

Definition at line 39 of file netdb.h.

◆ TRY_AGAIN

#define TRY_AGAIN   2

Definition at line 40 of file netdb.h.

◆ NO_RECOVERY

#define NO_RECOVERY   3

Definition at line 41 of file netdb.h.

◆ NO_DATA

#define NO_DATA   4

Definition at line 42 of file netdb.h.

◆ NO_ADDRESS

#define NO_ADDRESS   NO_DATA

Definition at line 43 of file netdb.h.

◆ EAI_ADDRFAMILY

#define EAI_ADDRFAMILY   1

Definition at line 45 of file netdb.h.

◆ EAI_AGAIN

#define EAI_AGAIN   2

Definition at line 46 of file netdb.h.

◆ EAI_BADFLAGS

#define EAI_BADFLAGS   3

Definition at line 47 of file netdb.h.

◆ EAI_FAIL

#define EAI_FAIL   4

Definition at line 48 of file netdb.h.

◆ EAI_FAMILY

#define EAI_FAMILY   5

Definition at line 49 of file netdb.h.

◆ EAI_MEMORY

#define EAI_MEMORY   6

Definition at line 50 of file netdb.h.

◆ EAI_NODATA

#define EAI_NODATA   7

Definition at line 51 of file netdb.h.

◆ EAI_NONAME

#define EAI_NONAME   8

Definition at line 52 of file netdb.h.

◆ EAI_SERVICE

#define EAI_SERVICE   9

Definition at line 53 of file netdb.h.

◆ EAI_SOCKTYPE

#define EAI_SOCKTYPE   10

Definition at line 54 of file netdb.h.

◆ EAI_SYSTEM

#define EAI_SYSTEM   11

Definition at line 55 of file netdb.h.

◆ EAI_BADHINTS

#define EAI_BADHINTS   12

Definition at line 56 of file netdb.h.

◆ EAI_PROTOCOL

#define EAI_PROTOCOL   13

Definition at line 57 of file netdb.h.

◆ EAI_OVERFLOW

#define EAI_OVERFLOW   14

Definition at line 58 of file netdb.h.

◆ EAI_MAX

#define EAI_MAX   15

Definition at line 59 of file netdb.h.

◆ NI_MAXHOST

#define NI_MAXHOST   1025

Definition at line 61 of file netdb.h.

◆ NI_MAXSERV

#define NI_MAXSERV   32

Definition at line 62 of file netdb.h.

◆ NI_NOFQDN

#define NI_NOFQDN   0x0001

Definition at line 65 of file netdb.h.

◆ NI_NUMERICHOST

#define NI_NUMERICHOST   0x0002

Definition at line 66 of file netdb.h.

◆ NI_NAMEREQD

#define NI_NAMEREQD   0x0004

Definition at line 67 of file netdb.h.

◆ NI_NUMERICSERV

#define NI_NUMERICSERV   0x0008

Definition at line 68 of file netdb.h.

◆ NI_DGRAM

#define NI_DGRAM   0x0010

Definition at line 69 of file netdb.h.

◆ NI_NUMERICSCOPE

#define NI_NUMERICSCOPE   0x0020

Definition at line 70 of file netdb.h.

◆ AI_PASSIVE

#define AI_PASSIVE   0x0001

Definition at line 73 of file netdb.h.

◆ AI_CANONNAME

#define AI_CANONNAME   0x0002

Definition at line 74 of file netdb.h.

◆ AI_NUMERICHOST

#define AI_NUMERICHOST   0x0004

Definition at line 75 of file netdb.h.

◆ AI_V4MAPPED

#define AI_V4MAPPED   0x0008

Definition at line 76 of file netdb.h.

◆ AI_ALL

#define AI_ALL   0x0010

Definition at line 77 of file netdb.h.

◆ AI_ADDRCONFIG

#define AI_ADDRCONFIG   0x0020

Definition at line 78 of file netdb.h.

Function Documentation

◆ gethostbyname()

struct hostent* gethostbyname ( const char *  name)

◆ gethostbyaddr()

struct hostent* gethostbyaddr ( const void *  addr,
socklen_t  len,
int  type 
)

◆ 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()

int getnameinfo ( const struct sockaddr addr,
socklen_t  addrlen,
char *  host,
socklen_t  hostlen,
char *  serv,
socklen_t  servlen,
int  flags 
)

◆ gai_strerror()

const char* gai_strerror ( int  ecode)

Variable Documentation

◆ h_errno

int h_errno
extern