19#ifndef DETERMINISTICESPASYNCWEBSERVER_SOCKPOOL_H
20#define DETERMINISTICESPASYNCWEBSERVER_SOCKPOOL_H
26#if DETWS_ENABLE_SOCKPOOL
44enum class SockAcq : uint8_t
47 SOCK_ACQ_RECYCLED = 1,
52void detws_sockpool_init(SockPool *p, SockSlot *slots,
size_t n);
62SockAcq detws_sockpool_acquire(SockPool *p, uint32_t
id, uint32_t now,
size_t *idx, uint32_t *evicted_id);
65void detws_sockpool_touch(SockPool *p,
size_t idx, uint32_t now);
68bool detws_sockpool_release(SockPool *p,
size_t idx);
71bool detws_sockpool_find(
const SockPool *p, uint32_t
id,
size_t *idx);
74size_t detws_sockpool_in_use(
const SockPool *p);
User-facing configuration for DeterministicESPAsyncWebServer.