Zephyr Project API 3.7.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
netdb.h File Reference

Go to the source code of this file.

Data Structures

struct  hostent
 
struct  netent
 
struct  protoent
 
struct  servent
 

Macros

#define NI_MAXSERV   32
 Provide a reasonable size for apps using getnameinfo.
 
#define EAI_BADFLAGS   DNS_EAI_BADFLAGS
 
#define EAI_NONAME   DNS_EAI_NONAME
 
#define EAI_AGAIN   DNS_EAI_AGAIN
 
#define EAI_FAIL   DNS_EAI_FAIL
 
#define EAI_NODATA   DNS_EAI_NODATA
 
#define EAI_MEMORY   DNS_EAI_MEMORY
 
#define EAI_SYSTEM   DNS_EAI_SYSTEM
 
#define EAI_SERVICE   DNS_EAI_SERVICE
 
#define EAI_SOCKTYPE   DNS_EAI_SOCKTYPE
 
#define EAI_FAMILY   DNS_EAI_FAMILY
 
#define EAI_OVERFLOW   DNS_EAI_OVERFLOW
 
#define addrinfo   zsock_addrinfo
 

Functions

void endhostent (void)
 
void endnetent (void)
 
void endprotoent (void)
 
void endservent (void)
 
void freeaddrinfo (struct zsock_addrinfo *ai)
 
const char * gai_strerror (int errcode)
 
int getaddrinfo (const char *host, const char *service, const struct zsock_addrinfo *hints, struct zsock_addrinfo **res)
 
struct hostentgethostent (void)
 
int getnameinfo (const struct sockaddr *addr, socklen_t addrlen, char *host, socklen_t hostlen, char *serv, socklen_t servlen, int flags)
 
struct netentgetnetbyaddr (uint32_t net, int type)
 
struct netentgetnetbyname (const char *name)
 
struct netentgetnetent (void)
 
struct protoentgetprotobyname (const char *name)
 
struct protoentgetprotobynumber (int proto)
 
struct protoentgetprotoent (void)
 
struct serventgetservbyname (const char *name, const char *proto)
 
struct serventgetservbyport (int port, const char *proto)
 
struct serventgetservent (void)
 
void sethostent (int stayopen)
 
void setnetent (int stayopen)
 
void setprotoent (int stayopen)
 
void setservent (int stayopen)
 

Macro Definition Documentation

◆ addrinfo

#define addrinfo   zsock_addrinfo

◆ EAI_AGAIN

#define EAI_AGAIN   DNS_EAI_AGAIN

◆ EAI_BADFLAGS

#define EAI_BADFLAGS   DNS_EAI_BADFLAGS

◆ EAI_FAIL

#define EAI_FAIL   DNS_EAI_FAIL

◆ EAI_FAMILY

#define EAI_FAMILY   DNS_EAI_FAMILY

◆ EAI_MEMORY

#define EAI_MEMORY   DNS_EAI_MEMORY

◆ EAI_NODATA

#define EAI_NODATA   DNS_EAI_NODATA

◆ EAI_NONAME

#define EAI_NONAME   DNS_EAI_NONAME

◆ EAI_OVERFLOW

#define EAI_OVERFLOW   DNS_EAI_OVERFLOW

◆ EAI_SERVICE

#define EAI_SERVICE   DNS_EAI_SERVICE

◆ EAI_SOCKTYPE

#define EAI_SOCKTYPE   DNS_EAI_SOCKTYPE

◆ EAI_SYSTEM

#define EAI_SYSTEM   DNS_EAI_SYSTEM

◆ NI_MAXSERV

#define NI_MAXSERV   32

Provide a reasonable size for apps using getnameinfo.

Function Documentation

◆ endhostent()

void endhostent ( void  )

◆ endnetent()

void endnetent ( void  )

◆ endprotoent()

void endprotoent ( void  )

◆ endservent()

void endservent ( void  )

◆ freeaddrinfo()

void freeaddrinfo ( struct zsock_addrinfo ai)

◆ gai_strerror()

const char * gai_strerror ( int  errcode)

◆ getaddrinfo()

int getaddrinfo ( const char *  host,
const char *  service,
const struct zsock_addrinfo hints,
struct zsock_addrinfo **  res 
)

◆ gethostent()

struct hostent * gethostent ( void  )

◆ getnameinfo()

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

◆ getnetbyaddr()

struct netent * getnetbyaddr ( uint32_t  net,
int  type 
)

◆ getnetbyname()

struct netent * getnetbyname ( const char *  name)

◆ getnetent()

struct netent * getnetent ( void  )

◆ getprotobyname()

struct protoent * getprotobyname ( const char *  name)

◆ getprotobynumber()

struct protoent * getprotobynumber ( int  proto)

◆ getprotoent()

struct protoent * getprotoent ( 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  )

◆ sethostent()

void sethostent ( int  stayopen)

◆ setnetent()

void setnetent ( int  stayopen)

◆ setprotoent()

void setprotoent ( int  stayopen)

◆ setservent()

void setservent ( int  stayopen)