1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-16 00:00:07 +01:00
libwebsockets/cmake
Andy Green c591e1adfc asynchronous dns for ipv4 and ipv6
This adds the option to have lws do its own dns resolution on
the event loop, without blocking.  Existing implementations get
the name resolution done by the libc, which is blocking.  In
the case you are opening client connections but need to carefully
manage latency, another connection opening and doing the name
resolution becomes a big problem.

Currently it supports

 - ipv4 / A records
 - ipv6 / AAAA records
 - ipv4-over-ipv6 ::ffff:1.2.3.4 A record promotion for ipv6
 - only one server supported over UDP :53
 - nameserver discovery on linux, windows, freertos

It also has some nice advantages

 - lws-style paranoid response parsing
 - random unique tid generation to increase difficulty of poisoning
 - it's really integrated with the lws event loop, it does not spawn
   threads or use the libc resolver, and of course no blocking at all
 - platform-specific server address capturing (from /etc/resolv.conf
   on linux, windows apis on windows)
 - it has LRU caching
 - piggybacking (multiple requests before the first completes go on
   a list on the first request, not spawn multiple requests)
 - observes TTL in cache
 - TTL and timeout use lws_sul timers on the event loop
 - ipv6 pieces only built if cmake LWS_IPV6 enabled
2019-09-19 06:54:53 +01:00
..
FindGit.cmake add FindGit.cmake 2013-02-18 18:34:10 +08:00
FindLibWebSockets.cmake clean up top level of project 2017-09-27 08:24:05 +08:00
FindMiniz.cmake cmake: miniz: add as option 2019-07-03 19:46:23 +01:00
FindOpenSSLbins.cmake Fixed ssl cert generation on Windows. 2013-02-22 09:28:11 +08:00
LibwebsocketsConfig.cmake.in add missing CMake pieces 2014-02-16 01:52:50 +08:00
LibwebsocketsConfigVersion.cmake.in add missing CMake pieces 2014-02-16 01:52:50 +08:00
lws_config.h.in asynchronous dns for ipv4 and ipv6 2019-09-19 06:54:53 +01:00
lws_config_private.h.in solve complilation errors on vs2008 2019-08-01 18:05:38 +01:00
UseRPMTools.cmake rpm: do parallel compilation during rpm builds 2018-05-26 09:20:20 +08:00