PSPSDK 2024-10-31
Loading...
Searching...
No Matches
netdb.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  hostent
 

Macros

#define NETDB_INTERNAL   -1 /* see errno */
 
#define NETDB_SUCCESS   0 /* no problem */
 
#define HOST_NOT_FOUND   1 /* Authoritative Answer Host not found */
 
#define TRY_AGAIN   2 /* Non-Authoritative Host not found, or SERVERFAIL */
 
#define NO_RECOVERY   3 /* Non recoverable errors, FORMERR, REFUSED, NOTIMP */
 
#define NO_DATA   4 /* Valid name, no data record of requested type */
 
#define NO_ADDRESS   NO_DATA /* no address, look for MX record */
 

Functions

struct hostentgethostbyaddr (const void *addr, int len, int type)
 
struct hostentgethostbyname (const char *name)
 

Variables

int h_errno
 

Macro Definition Documentation

◆ HOST_NOT_FOUND

#define HOST_NOT_FOUND   1 /* Authoritative Answer Host not found */

◆ NETDB_INTERNAL

#define NETDB_INTERNAL   -1 /* see errno */

◆ NETDB_SUCCESS

#define NETDB_SUCCESS   0 /* no problem */

◆ NO_ADDRESS

#define NO_ADDRESS   NO_DATA /* no address, look for MX record */

◆ NO_DATA

#define NO_DATA   4 /* Valid name, no data record of requested type */

◆ NO_RECOVERY

#define NO_RECOVERY   3 /* Non recoverable errors, FORMERR, REFUSED, NOTIMP */

◆ TRY_AGAIN

#define TRY_AGAIN   2 /* Non-Authoritative Host not found, or SERVERFAIL */

Function Documentation

◆ gethostbyaddr()

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

◆ gethostbyname()

struct hostent * gethostbyname ( const char name)

Variable Documentation

◆ h_errno

int h_errno
extern