ESP-IDF
+
0
/2 examples
SourceVu will show references to
httpd_ws_frame::len
from the following samples and libraries:
wss_server sample
ws_echo_server sample
Symbol previews are coming soon...
Symbols
loading (4/5)...
Files
loading (4/5)...
Summary
Syntax
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
ESP-IDF Framework and Examples
ESP-IDF
httpd_ws_frame::len
httpd_ws_frame::len field
Length of the WebSocket data
Syntax
Show:
Summary
Declaration
from
esp_http_server.h:1711
size_t
len
;
Examples
httpd_ws_frame::len
is referenced by 2 libraries and example projects:
wss_server sample
ws_echo_server sample
References
from
0/2
examples
Code
Location
Referrer
size_t
len
;
/*!< Length of the WebSocket data */
esp_http_server.h:1711
if
(
frame
->
len
==
0
)
{
httpd_ws.c:263
httpd_ws_recv_frame()
frame
->
len
=
init_len
;
httpd_ws.c:283
httpd_ws_recv_frame()
frame
->
len
=
(
(
uint32_t
)
(
length_bytes
[
0
]
<
<
8U
)
|
(
length_bytes
[
1
]
)
)
;
httpd_ws.c:292
httpd_ws_recv_frame()
frame
->
len
=
(
(
(
uint64_t
)
length_bytes
[
0
]
<
<
56U
)
|
httpd_ws.c:301
httpd_ws_recv_frame()
if
(
frame
->
len
>
max_len
)
{
httpd_ws.c:325
httpd_ws_recv_frame()
if
(
frame
->
len
==
0
)
{
httpd_ws.c:336
httpd_ws_recv_frame()
size_t
left_len
=
frame
->
len
;
httpd_ws.c:345
httpd_ws_recv_frame()
ESP_LOGD
(
TAG
,
"Frame length: %"
NEWLIB_NANO_COMPAT_FORMAT
", Bytes Read: %"
NEWLIB_NANO_COMPAT_FORMAT
,
NEWLIB_NANO_COMPAT_CAST
(
frame
->
len
)
,
NEWLIB_NANO_COMPAT_CAST
(
offset
)
)
;
httpd_ws.c:357
httpd_ws_recv_frame()
httpd_ws_unmask_payload
(
frame
->
payload
,
frame
->
len
,
aux
->
mask_key
)
;
httpd_ws.c:361
httpd_ws_recv_frame()
if
(
frame
->
len
<=
125
)
{
httpd_ws.c:389
httpd_ws_send_frame_async()
header_buf
[
1
]
=
frame
->
len
&
0x7fU
;
/* Length for 7 bits */
httpd_ws.c:390
httpd_ws_send_frame_async()
}
else
if
(
frame
->
len
>
125
&&
frame
->
len
<
UINT16_MAX
)
{
httpd_ws.c:392
httpd_ws_send_frame_async()
header_buf
[
2
]
=
(
frame
->
len
>
>
8U
)
&
0xffU
;
httpd_ws.c:394
httpd_ws_send_frame_async()
header_buf
[
3
]
=
frame
->
len
&
0xffU
;
httpd_ws.c:395
httpd_ws_send_frame_async()
uint64_t
len64
=
frame
->
len
;
/* Raise variable size to make sure we won't shift by more bits
httpd_ws.c:400
httpd_ws_send_frame_async()
if
(
frame
->
len
>
0
&&
frame
->
payload
!=
NULL
)
{
httpd_ws.c:425
httpd_ws_send_frame_async()
if
(
sess
->
send_fn
(
hd
,
fd
,
(
const
char
*
)
frame
->
payload
,
frame
->
len
,
0
)
<
0
)
{
httpd_ws.c:426
httpd_ws_send_frame_async()
frame
.
len
=
0
;
httpd_ws.c:510
httpd_ws_get_frame_type()
Call Tree
from
0/2
examples
All items filtered out
All items filtered out
Data Use
from
0/2
examples
httpd_ws_frame::len
is written by 2 functions and is read by 2 functions:
httpd_ws_recv_frame()
httpd_ws_get_frame_type()
All items filtered out
httpd_ws_frame::len
httpd_ws_recv_frame()
httpd_ws_send_frame_async()
All items filtered out
Class Tree
from
0/2
examples
All items filtered out
All items filtered out
Override Tree
from
0/2
examples
All items filtered out
All items filtered out
Implementations
from
0/2
examples
All items filtered out
All items filtered out
Instances
from
0/2
examples
Lifecycle
from
0/2
examples
All items filtered out
All items filtered out