Free (GPLv2) TCP/IP stack developed by TASS Belgium
Fork of PicoTCP by
modules/pico_dns_client.h@1:cfe8984a32b4, 2013-05-17 (annotated)
- Committer:
- tass
- Date:
- Fri May 17 12:09:59 2013 +0000
- Revision:
- 1:cfe8984a32b4
- Parent:
- libraries/picotcp/modules/pico_dns_client.h@0:d7f2341ab245
Update for smaller SOCKETQ
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
daniele | 0:d7f2341ab245 | 1 | /********************************************************************* |
daniele | 0:d7f2341ab245 | 2 | PicoTCP. Copyright (c) 2012 TASS Belgium NV. Some rights reserved. |
daniele | 0:d7f2341ab245 | 3 | See LICENSE and COPYING for usage. |
daniele | 0:d7f2341ab245 | 4 | |
daniele | 0:d7f2341ab245 | 5 | . |
daniele | 0:d7f2341ab245 | 6 | |
daniele | 0:d7f2341ab245 | 7 | Authors: Kristof Roelants |
daniele | 0:d7f2341ab245 | 8 | *********************************************************************/ |
daniele | 0:d7f2341ab245 | 9 | |
daniele | 0:d7f2341ab245 | 10 | #ifndef _INCLUDE_PICO_DNS_CLIENT |
daniele | 0:d7f2341ab245 | 11 | #define _INCLUDE_PICO_DNS_CLIENT |
daniele | 0:d7f2341ab245 | 12 | |
daniele | 0:d7f2341ab245 | 13 | #define PICO_DNS_NS_DEL 0 |
daniele | 0:d7f2341ab245 | 14 | #define PICO_DNS_NS_ADD 1 |
daniele | 0:d7f2341ab245 | 15 | |
daniele | 0:d7f2341ab245 | 16 | int pico_dns_client_init(); |
daniele | 0:d7f2341ab245 | 17 | /* flag is PICO_DNS_NS_DEL or PICO_DNS_NS_ADD */ |
daniele | 0:d7f2341ab245 | 18 | int pico_dns_client_nameserver(struct pico_ip4 *ns, uint8_t flag); |
daniele | 0:d7f2341ab245 | 19 | int pico_dns_client_getaddr(const char *url, void (*callback)(char *ip, void *arg), void *arg); |
daniele | 0:d7f2341ab245 | 20 | int pico_dns_client_getname(const char *ip, void (*callback)(char *url, void *arg), void *arg); |
daniele | 0:d7f2341ab245 | 21 | |
daniele | 0:d7f2341ab245 | 22 | #endif /* _INCLUDE_PICO_DNS_CLIENT */ |