weAut_01 / weAutSys    R 2.2.1
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines
Defines | Functions
include/uip/apps/resolv.h File Reference

Overview

DNS resolver definitions.

Adam Dunkels' original copyright notice
  Copyright (c) 2002-2003, Adam Dunkels. All rights reserved.
(contained in this file) still holds. For modifications:


  Copyright © 2011 Albrecht Weinert, Bochum

Author:
Adam Dunkels adam@.nosp@m.dunk.nosp@m.els.c.nosp@m.om
Albrecht Weinert   <a-weinert.de>
Revision:
2
Date:
2017-01-25 17:49:03 +0100 (Mi, 25 Jan 2017)

Defines

#define MAX_DNS_RETRIES   8
 The maximum number of DNS retries.

Functions

void resolv_appcall (void)
 uIP event function for the DNS resolver
void resolv_conf (uint16_t *dnsserver)
 Configure which DNS server to use for queries.
void resolv_found (char *name, uint16_t *ipaddr)
 Callback function which is called after hostname look-up.
uint16_t * resolv_getserver (void)
 Obtain the currently configured DNS server.
void resolv_init (void)
 Initialise the resolver.
uint16_t * resolv_lookup (char *name)
 Look up a hostname in the array of known hostnames.
void resolv_query (char *name)
 Queues a name so that a question for the name will be sent out.