20#ifndef DETERMINISTICESPASYNCWEBSERVER_PROTO_HANDLER_H
21#define DETERMINISTICESPASYNCWEBSERVER_PROTO_HANDLER_H
User-facing configuration for DeterministicESPAsyncWebServer.
ConnProto
Application protocol spoken on a listener port or connection slot.
void proto_register(ConnProto proto, const ProtoHandler *h)
Register h for protocol proto (replaces any previous handler).
const ProtoHandler * proto_get(ConnProto proto)
Look up the handler for proto.
void proto_register_builtins(void)
Register every built-in protocol's handler (the policy list).
Per-protocol connection event/poll callbacks (Layer 5 dispatch vtable).
void(* on_close)(uint8_t slot)
EvtType::EVT_DISCONNECT / EvtType::EVT_ERROR: tear down slot state.
void(* on_data)(uint8_t slot)
EvtType::EVT_DATA: bytes are available in the slot's rx ring.
void(* on_poll)(uint8_t slot)
Called for an active slot each handle() loop (nullable).
void(* on_accept)(uint8_t slot)
EvtType::EVT_CONNECT: a new connection was accepted.