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 */
43#endif
44
48
49#if defined(LWS_WITH_NETWORK)
51#endif
52
53#if defined(LWS_WITH_JOSE)
55#endif
56
58
59#if defined(LWS_WITH_NETWORK)
60#if defined(LWS_WITH_CONMON)
62#endif
66#endif
70#if defined(LWS_WITH_NETWORK)
72#endif
75
83
86#if defined(LWS_WITH_AUTHORITATIVE_DNS)
88#endif
89
90#if defined(LWS_WITH_TLS)
91
93
94#if defined(LWS_WITH_MBEDTLS)
95#if !defined(LWS_HAVE_MBEDTLS_V4)
96#include <mbedtls/md5.h>
97#include <mbedtls/sha1.h>
98#include <mbedtls/sha256.h>
99#include <mbedtls/sha512.h>
100#else
101#include <psa/crypto.h>
102#endif
103#endif
104#if defined(LWS_WITH_BEARSSL)
105#include <bearssl.h>
106#endif
107
113
119
120#endif
121
122#if defined(LWS_WITH_NETWORK)
124#endif
127#if defined(LWS_ESP_PLATFORM)
129#endif
144#if defined(LWS_WITH_DLTS)
146#endif
147#if defined(LWS_WITH_NETWORK)
152#if defined(LWS_WITH_TRANSCODE)
154#endif
155#if defined(LWS_WITH_V4L2)
157#endif
158#if defined(LWS_WITH_ALSA)
161#endif
162#endif
163
164/* the html layout engine renders into the display list: it lives with it */
166
167#if defined(LWS_WITH_EMAIL)
169#endif
170
171#if defined(LWS_WITH_LOG_SHIP)
173#endif
174
175#if defined(LWS_WITH_DIR)
177#endif