1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-30 00:00:16 +01:00
libwebsockets/lib
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
..
abstract freertos: rename esp32 plat to freertos 2019-08-26 09:58:57 +01:00
core asynchronous dns for ipv4 and ipv6 2019-09-19 06:54:53 +01:00
core-net asynchronous dns for ipv4 and ipv6 2019-09-19 06:54:53 +01:00
event-libs clean: internally use LWS_WITH_CLIENT and _SERVER 2019-08-26 09:58:57 +01:00
jose private.h: rename to contain dir 2019-08-15 10:49:52 +01:00
misc asynchronous dns for ipv4 and ipv6 2019-09-19 06:54:53 +01:00
plat asynchronous dns for ipv4 and ipv6 2019-09-19 06:54:53 +01:00
roles asynchronous dns for ipv4 and ipv6 2019-09-19 06:54:53 +01:00
system/async-dns asynchronous dns for ipv4 and ipv6 2019-09-19 06:54:53 +01:00
tls lws_tls_client_vhost_extra_cert_mem 2019-09-06 15:30:51 +01:00
README.md JOSE: refactor and prepare for JWE 2018-12-27 06:45:31 +08:00

Library sources layout

Code that goes in the libwebsockets library itself lives down ./lib

Path Sources
lib/core Core lws code related to generic fd and wsi servicing and management
lib/event-libs Code containing optional event-lib specific adaptations
lib/jose JOSE / JWS / JWK / JWE implementations
lib/misc Code for various mostly optional miscellaneous features
lib/plat Platform-specific adaptation code
lib/roles Code for specific optional wsi roles, eg, http/1, h2, ws, raw, etc
lib/tls Code supporting the various TLS libraries
libwebsockets.h Public API header for the whole of lws