libwebsockets
Lightweight C library for HTML5 websockets
Toggle main menu visibility
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)
33
#include <
libwebsockets/lws-transport-sequencer.h
>
34
#endif
35
#if defined(LWS_WITH_NETWORK)
36
#include <
libwebsockets/lws-adopt.h
>
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
*/
41
#include <
libwebsockets/lws-network-helper.h
>
42
#endif
43
44
#include <
libwebsockets/lws-ota.h
>
45
#include <
libwebsockets/lws-system.h
>
46
#include <
libwebsockets/lws-whois.h
>
47
48
#if defined(LWS_WITH_NETWORK)
49
#include <
libwebsockets/lws-latency.h
>
50
#endif
51
52
#if defined(LWS_WITH_JOSE)
53
#include <
libwebsockets/lws-interceptor.h
>
54
#endif
55
56
#include <
libwebsockets/lws-context-vhost.h
>
57
58
#if defined(LWS_WITH_NETWORK)
59
#if defined(LWS_WITH_CONMON)
60
#include <
libwebsockets/lws-conmon.h
>
61
#endif
62
#include <
libwebsockets/lws-client.h
>
63
#include <
libwebsockets/lws-async-ipc.h
>
64
#include <
libwebsockets/lws-service.h
>
65
#endif
66
#include <
libwebsockets/lws-gendtls.h
>
67
#include <
libwebsockets/lws-stun.h
>
68
#include <
libwebsockets/lws-x509.h
>
69
#if defined(LWS_WITH_NETWORK)
70
#include <
libwebsockets/lws-cgi.h
>
71
#endif
72
#include <
libwebsockets/lws-gencrypto.h
>
73
#include <
libwebsockets/lws-cose.h
>
74
75
#include <
libwebsockets/lws-secure-streams.h
>
76
#include <
libwebsockets/lws-secure-streams-serialization.h
>
77
#include <
libwebsockets/lws-secure-streams-policy.h
>
78
#include <
libwebsockets/lws-secure-streams-client.h
>
79
#include <
libwebsockets/lws-secure-streams-transport-proxy.h
>
80
#include <
libwebsockets/lws-jrpc.h
>
81
#include <
libwebsockets/lws-stub.h
>
82
83
#include <
libwebsockets/lws-async-dns.h
>
84
#if defined(LWS_WITH_AUTHORITATIVE_DNS)
85
#include <
libwebsockets/lws-auth-dns.h
>
86
#endif
87
88
#if defined(LWS_WITH_TLS)
89
90
#include <
libwebsockets/lws-tls-sessions.h
>
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
106
#include <
libwebsockets/lws-genhash.h
>
107
#include <
libwebsockets/lws-genrsa.h
>
108
#include <
libwebsockets/lws-genaes.h
>
109
#include <
libwebsockets/lws-genchacha.h
>
110
#include <
libwebsockets/lws-genec.h
>
111
112
#include <
libwebsockets/lws-jwk.h
>
113
#include <
libwebsockets/lws-jose.h
>
114
#include <
libwebsockets/lws-jws.h
>
115
#include <
libwebsockets/lws-jwe.h
>
116
#include <
libwebsockets/lws-jwt-auth.h
>
117
118
#endif
119
120
#if defined(LWS_WITH_NETWORK)
121
#include <
libwebsockets/lws-eventlib-exports.h
>
122
#endif
123
#include <
libwebsockets/lws-i2c.h
>
124
#include <
libwebsockets/lws-spi.h
>
125
#if defined(LWS_ESP_PLATFORM)
126
#include <
libwebsockets/lws-esp32-spi.h
>
127
#endif
128
#include <
libwebsockets/lws-gpio.h
>
129
#include <
libwebsockets/lws-bb-i2c.h
>
130
#include <
libwebsockets/lws-bb-spi.h
>
131
#include <
libwebsockets/lws-button.h
>
132
#include <
libwebsockets/lws-led.h
>
133
#include <
libwebsockets/lws-pwm.h
>
134
#include <
libwebsockets/lws-display.h
>
135
#include <
libwebsockets/lws-dlo.h
>
136
#include <
libwebsockets/lws-ssd1306-i2c.h
>
137
#include <
libwebsockets/lws-ili9341-spi.h
>
138
#include <
libwebsockets/lws-gc9a01a-spi.h
>
139
#include <
libwebsockets/lws-spd1656-spi.h
>
140
#include <
libwebsockets/lws-ssd1675b-spi.h
>
141
#include <
libwebsockets/lws-uc8176-spi.h
>
142
#if defined(LWS_WITH_DLTS)
143
#include <
libwebsockets/lws-gendtls.h
>
144
#endif
145
#if defined(LWS_WITH_NETWORK)
146
#include <
libwebsockets/lws-netdev.h
>
147
#include <
libwebsockets/lws-txpacer.h
>
148
#include "
libwebsockets/lws-dht.h
"
149
#include "
libwebsockets/lws-dht-dnssec.h
"
150
#if defined(LWS_WITH_TRANSCODE)
151
#include <
libwebsockets/lws-transcode.h
>
152
#endif
153
#if defined(LWS_WITH_V4L2)
154
#include <
libwebsockets/lws-v4l2.h
>
155
#endif
156
#if defined(LWS_WITH_ALSA)
157
#include <
libwebsockets/lws-alsa.h
>
158
#include <
libwebsockets/lws-audio-features.h
>
159
#endif
160
#endif
161
162
/* the html layout engine renders into the display list: it lives with it */
163
#include <
libwebsockets/lws-html.h
>
164
165
#include <
libwebsockets/lws-smtp-client.h
>
166
167
#if defined(LWS_WITH_DIR)
168
#include <
libwebsockets/lws-dir-notify.h
>
169
#endif
lws-adopt.h
lws-alsa.h
lws-async-dns.h
lws-async-ipc.h
lws-audio-features.h
lws-auth-dns.h
lws-bb-i2c.h
lws-bb-spi.h
lws-button.h
lws-cgi.h
lws-client.h
lws-conmon.h
lws-context-vhost.h
lws-cose.h
lws-dht-dnssec.h
lws-dht.h
lws-dir-notify.h
lws-display.h
lws-dlo.h
lws-esp32-spi.h
lws-eventlib-exports.h
lws-gc9a01a-spi.h
lws-genaes.h
lws-genchacha.h
lws-gencrypto.h
lws-gendtls.h
lws-genec.h
lws-genhash.h
lws-genrsa.h
lws-gpio.h
lws-html.h
lws-i2c.h
lws-ili9341-spi.h
lws-interceptor.h
lws-jose.h
lws-jrpc.h
lws-jwe.h
lws-jwk.h
lws-jws.h
lws-jwt-auth.h
lws-latency.h
lws-led.h
lws-netdev.h
lws-network-helper.h
lws-ota.h
lws-pwm.h
lws-secure-streams-client.h
lws-secure-streams-policy.h
lws-secure-streams-serialization.h
lws-secure-streams-transport-proxy.h
lws-secure-streams.h
lws-service.h
lws-smtp-client.h
lws-spd1656-spi.h
lws-spi.h
lws-ssd1306-i2c.h
lws-ssd1675b-spi.h
lws-stub.h
lws-stun.h
lws-system.h
lws-tls-sessions.h
lws-transcode.h
lws-transport-sequencer.h
lws-txpacer.h
lws-uc8176-spi.h
lws-v4l2.h
lws-whois.h
lws-x509.h
include
libwebsockets
lws-io.h
Generated on
for libwebsockets by
1.18.0