DeterministicESPAsyncWebServer v6.27.1
Zero-allocation, bounded-execution async HTTP server for ESP32
Loading...
Searching...
No Matches
ProtoHandler Struct Reference

Per-protocol connection event/poll callbacks (Layer 5 dispatch vtable). More...

#include <proto_handler.h>

Public Attributes

void(* on_accept )(uint8_t slot)
 EvtType::EVT_CONNECT: a new connection was accepted.
 
void(* on_data )(uint8_t slot)
 EvtType::EVT_DATA: bytes are available in the slot's rx ring.
 
void(* on_close )(uint8_t slot)
 EvtType::EVT_DISCONNECT / EvtType::EVT_ERROR: tear down slot state.
 
void(* on_poll )(uint8_t slot)
 Called for an active slot each handle() loop (nullable).
 

Detailed Description

Per-protocol connection event/poll callbacks (Layer 5 dispatch vtable).

Definition at line 29 of file proto_handler.h.

Member Data Documentation

◆ on_accept

void(* ProtoHandler::on_accept) (uint8_t slot)

EvtType::EVT_CONNECT: a new connection was accepted.

Definition at line 31 of file proto_handler.h.

◆ on_data

void(* ProtoHandler::on_data) (uint8_t slot)

EvtType::EVT_DATA: bytes are available in the slot's rx ring.

Definition at line 32 of file proto_handler.h.

◆ on_close

void(* ProtoHandler::on_close) (uint8_t slot)

EvtType::EVT_DISCONNECT / EvtType::EVT_ERROR: tear down slot state.

Definition at line 33 of file proto_handler.h.

◆ on_poll

void(* ProtoHandler::on_poll) (uint8_t slot)

Called for an active slot each handle() loop (nullable).

Definition at line 34 of file proto_handler.h.

Referenced by DetWebServer::service_once().


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