|
DeterministicESPAsyncWebServer 1.2.0
Zero-allocation, bounded-execution async HTTP server for ESP32
|
Layer 5 (Session) — event queue processor implementation. More...
#include "session.h"Go to the source code of this file.
Functions | |
| void | server_tick () |
| Drive the session layer for one Arduino loop iteration. | |
Layer 5 (Session) — event queue processor implementation.
server_tick() is the only function here. Its bounded loop drains the entire FreeRTOS queue in one call so that the application layer always sees the most up-to-date state before checking http_pool[].
Definition in file session.cpp.
| void server_tick | ( | ) |
Drive the session layer for one Arduino loop iteration.
Call this function from your loop() (or indirectly via DetWebServer::handle()). It performs three actions in order:
EVT_CONNECT / EVT_DISCONNECT / EVT_ERROR → http_reset()EVT_DATA → http_parse()Definition at line 15 of file session.cpp.
References DeterministicAsyncTCP::check_timeouts(), EVT_CONNECT, EVT_DATA, EVT_DISCONNECT, EVT_ERROR, http_parse(), http_reset(), DeterministicAsyncTCP::queue, TcpEvt::slot_id, and TcpEvt::type.
Referenced by DetWebServer::handle().