rcbench
Servo and ESC test bench: panel, IOmcu and shared C
Toggle main menu visibility
Loading...
Searching...
No Matches
wifi_sock.h
1
/*
2
* The page server's raw sends on its socket (wa_send.h's sink).
3
*
4
* The page's server has no TLS (transport layer security) and no send of
5
* its own, so a response whose length is known up front is written to the
6
* socket directly, without waiting (MSG_DONTWAIT), and a full send buffer
7
* is waited out in slices of WA_SEND_SLICE_MS. Each slice looks at the
8
* radio going off and at the receiver: a receiver that closed ends the send
9
* at its next slice, not at the next retransmission.
10
*
11
* SPDX-License-Identifier: MIT
12
*/
13
14
#ifndef RCBENCH_WIFI_SOCK_H
15
#define RCBENCH_WIFI_SOCK_H
16
17
#include <stdatomic.h>
18
19
#include "esp_err.h"
20
#include "wa_send.h"
21
22
typedef
struct
{
23
int
fd;
/* the request's socket */
24
const
atomic_bool *abort;
/* true: the radio goes off */
25
}
wifi_sock_t
;
26
28
wa_sink_t
wifi_sock_sink(
wifi_sock_t
*c);
29
34
esp_err_t wifi_sock_drop(
int
fd);
35
36
#endif
/* RCBENCH_WIFI_SOCK_H */
wa_sink_t
Definition
wa_send.h:77
wifi_sock_t
Definition
wifi_sock.h:22
firmware
panel
components
wifi_access
wifi_sock.h
Generated by
1.18.0