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