sdk-core v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
Loading...
Searching...
No Matches
netdb.h File Reference
#include <sys/cdefs.h>

Go to the source code of this file.

Macros

#define EAI_NONAME   200
#define EAI_SERVICE   201
#define EAI_FAIL   202
#define EAI_MEMORY   203
#define EAI_FAMILY   204
#define HOST_NOT_FOUND   210
#define NO_DATA   211
#define NO_ADDRESS   NO_DATA
#define NO_RECOVERY   212
#define TRY_AGAIN   213

Functions

__BEGIN_DECLS struct hostent * gethostbyaddr (const void *addr, int len, int type)
struct hostent * gethostbyname (const char *name)
int gethostbyname_r (const char *name, struct hostent *ret, char *buf, size_t buflen, struct hostent **result, int *h_errnop)
void freeaddrinfo (struct addrinfo *ai)
int getaddrinfo (const char *nodename, const char *servname, const struct addrinfo *hints, struct addrinfo **res)

Macro Definition Documentation

◆ EAI_FAIL

#define EAI_FAIL   202

Definition at line 31 of file netdb.h.

◆ EAI_FAMILY

#define EAI_FAMILY   204

Definition at line 33 of file netdb.h.

◆ EAI_MEMORY

#define EAI_MEMORY   203

Definition at line 32 of file netdb.h.

◆ EAI_NONAME

#define EAI_NONAME   200

Definition at line 29 of file netdb.h.

◆ EAI_SERVICE

#define EAI_SERVICE   201

Definition at line 30 of file netdb.h.

◆ HOST_NOT_FOUND

#define HOST_NOT_FOUND   210

Definition at line 36 of file netdb.h.

◆ NO_ADDRESS

#define NO_ADDRESS   NO_DATA

Definition at line 38 of file netdb.h.

◆ NO_DATA

#define NO_DATA   211

Definition at line 37 of file netdb.h.

◆ NO_RECOVERY

#define NO_RECOVERY   212

Definition at line 39 of file netdb.h.

◆ TRY_AGAIN

#define TRY_AGAIN   213

Definition at line 40 of file netdb.h.

Function Documentation

◆ freeaddrinfo()

void freeaddrinfo ( struct addrinfo * ai)
extern

Definition at line 52 of file netdb.c.

◆ getaddrinfo()

int getaddrinfo ( const char * nodename,
const char * servname,
const struct addrinfo * hints,
struct addrinfo ** res )
extern

Definition at line 62 of file netdb.c.

◆ gethostbyaddr()

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

Definition at line 18 of file netdb.c.

◆ gethostbyname()

struct hostent * gethostbyname ( const char * name)
extern

Definition at line 28 of file netdb.c.

◆ gethostbyname_r()

int gethostbyname_r ( const char * name,
struct hostent * ret,
char * buf,
size_t buflen,
struct hostent ** result,
int * h_errnop )
extern

Definition at line 38 of file netdb.c.