44b2f212a1
This patch introduces a k_sem that will block until: - data is received, or - the user-provided timeout expires This change allows us to simplify our previous DNS client implementation. This change is related to ZEP-1357 because we are refactoring the DNS client API removing the continuous update of the net_context_recv routine that seems to be causing issues after the kernel's update. Jira: ZEP-1357 Change-Id: If01c9274ac8f096f0095a2872f86be2e007212ee Signed-off-by: Flavio Santes <flavio.santes@intel.com> |
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
README | ||
dns_client.c | ||
dns_pack.c | ||
dns_pack.h |
README
DNS Client API for Zephyr ========================= Known limitations: - Synchronous queries - Only IPv4 and IPv6 records can be handled - Minimal protocol validation. If you do not trust your DNS server, it is time to change it :) Usage: Before calling the resolver, it must be initialized via the 'dns_init' routine. 'dnsX_resolve_quick' routines just return the first IP address. However, domain names may be served by more IP addresses, so 'dnsX_resolve' routines may be more useful. See samples/net/dns_client/src/main.c.