29#ifndef DETERMINISTICESPASYNCWEBSERVER_SSE_H
30#define DETERMINISTICESPASYNCWEBSERVER_SSE_H
108 const char *event,
const char *
id);
User-facing configuration for DeterministicESPAsyncWebServer.
#define MAX_PATH_LEN
Maximum URL path length (including leading /).
#define MAX_SSE_CONNS
Maximum simultaneous SSE connections.
void sse_init()
Initialise all SSE pool slots to inactive.
bool sse_write(SseConn *sse, const char *data, const char *event, const char *id)
Write one SSE event record to a client.
SseConn sse_pool[MAX_SSE_CONNS]
Pool of SSE connection state, one per MAX_SSE_CONNS.
SseConn * sse_find(uint8_t slot_id)
Find the SseConn for a given TCP slot, or nullptr.
SseConn * sse_alloc(uint8_t slot_id, const char *path)
Allocate an SseConn and bind it to a TCP slot.
void sse_free(uint8_t slot_id)
Free the SseConn associated with a TCP slot.
SSE connection state stored in sse_pool[].
uint8_t sse_id
Index into sse_pool[] (set at init).
bool active
True when this entry is in use.
uint8_t slot_id
Owning TCP slot in conn_pool[].
Layer 4 (Transport) — TCP connection pool, ring buffers, and lwIP integration.