libwebsockets
Lightweight C library for HTML5 websockets
Loading...
Searching...
No Matches
lws-io.h
Go to the documentation of this file.
1/*
2 * libwebsockets - small server side websockets and web server implementation
3 *
4 * Copyright (C) 2010 - 2026 Andy Green <andy@warmcat.com>
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 * of this software and associated documentation files (the "Software"), to
8 * deal in the Software without restriction, including without limitation the
9 * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
10 * sell copies of the Software, and to permit persons to whom the Software is
11 * furnished to do so, subject to the following conditions:
12 *
13 * The above copyright notice and this permission notice shall be included in
14 * all copies or substantial portions of the Software.
15 *
16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22 * DEALINGS IN THE SOFTWARE.
23 *
24 * lws-io.h: the transport half of lws. Creating a context and vhosts,
25 * adopting and connecting sockets, service, the tls library, dns, event
26 * loops, and the platform's devices. Everything in here names something
27 * outside the process's own memory. See READMEs/README.sans-io-split.md.
28 *
29 * Needs lws-core.h and lws-sansio.h first.
30 */
31
32#if defined(LWS_WITH_TRANSPORT_SEQUENCER)
34#endif
35#if defined(LWS_WITH_NETWORK)
37/*
38 * addresses are data and belong with core, but lws_sockaddr46 is defined in
39 * lws-adopt.h today; it moves when the type does
40 */
42#endif
43
47
48#if defined(LWS_WITH_NETWORK)
50#endif
51
52#if defined(LWS_WITH_JOSE)
54#endif
55
57
58#if defined(LWS_WITH_NETWORK)
59#if defined(LWS_WITH_CONMON)
61#endif
65#endif
69#if defined(LWS_WITH_NETWORK)
71#endif
74
82
84#if defined(LWS_WITH_AUTHORITATIVE_DNS)
86#endif
87
88#if defined(LWS_WITH_TLS)
89
91
92#if defined(LWS_WITH_MBEDTLS)
93#if !defined(LWS_HAVE_MBEDTLS_V4)
94#include <mbedtls/md5.h>
95#include <mbedtls/sha1.h>
96#include <mbedtls/sha256.h>
97#include <mbedtls/sha512.h>
98#else
99#include <psa/crypto.h>
100#endif
101#endif
102#if defined(LWS_WITH_BEARSSL)
103#include <bearssl.h>
104#endif
105
111
117
118#endif
119
120#if defined(LWS_WITH_NETWORK)
122#endif
125#if defined(LWS_ESP_PLATFORM)
127#endif
142#if defined(LWS_WITH_DLTS)
144#endif
145#if defined(LWS_WITH_NETWORK)
150#if defined(LWS_WITH_TRANSCODE)
152#endif
153#if defined(LWS_WITH_V4L2)
155#endif
156#if defined(LWS_WITH_ALSA)
159#endif
160#endif
161
162/* the html layout engine renders into the display list: it lives with it */
164
166
167#if defined(LWS_WITH_DIR)
169#endif