Nut/OS  5.0.5
API Reference
netdb.h File Reference
#include <sys/types.h>
#include <stdint.h>
#include <compiler.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  DNSCONFIG

Defines

#define _NETDB_H_
#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

Functions

void NutDnsConfig2 (const uint8_t *hostname, const uint8_t *domain, uint32_t pdnsip, uint32_t sdnsip)
 Set DNS configuration.
void NutDnsGetConfig2 (char **hostname, char **domain, uint32_t *pdnsip, uint32_t *sdnsip)
void NutDnsConfig (const uint8_t *hostname, const uint8_t *domain, uint32_t dnsip) NUT_DEPRECATED
 Sets DNS configuration.
uint32_t NutDnsGetHostByName (const uint8_t *hostname)
uint8_t NutDnsGetHostsByName (const uint8_t *hostname, uint32_t *ip_all)
uint32_t NutDnsGetMxByDomain (const uint8_t *hostname)

Define Documentation

#define _NETDB_H_
#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