DeterministicESPAsyncWebServer 1.2.0
Zero-allocation, bounded-execution async HTTP server for ESP32
Loading...
Searching...
No Matches
SseConn Struct Reference

SSE connection state stored in sse_pool[]. More...

#include <sse.h>

Public Attributes

uint8_t sse_id
 Index into sse_pool[] (set at init).
 
uint8_t slot_id
 Owning TCP slot in conn_pool[].
 
bool active
 True when this entry is in use.
 
char path [MAX_PATH_LEN]
 

Detailed Description

SSE connection state stored in sse_pool[].

Allocated when the SSE handshake (200 + headers) is sent. slot_id ties this entry back to conn_pool[] and the underlying TCP PCB.

Definition at line 45 of file sse.h.

Member Data Documentation

◆ sse_id

uint8_t SseConn::sse_id

Index into sse_pool[] (set at init).

Definition at line 47 of file sse.h.

Referenced by sse_alloc(), sse_free(), and sse_init().

◆ slot_id

uint8_t SseConn::slot_id

Owning TCP slot in conn_pool[].

Definition at line 48 of file sse.h.

Referenced by sse_alloc(), and sse_write().

◆ active

bool SseConn::active

True when this entry is in use.

Definition at line 49 of file sse.h.

Referenced by sse_alloc().

◆ path

char SseConn::path[MAX_PATH_LEN]

Path this client subscribed to (for sse_broadcast() matching).

Definition at line 52 of file sse.h.

Referenced by sse_alloc().


The documentation for this struct was generated from the following file: