27#ifndef DETERMINISTICESPASYNCWEBSERVER_RELAY_H
28#define DETERMINISTICESPASYNCWEBSERVER_RELAY_H
38enum class DetRelayStatus : int32_t
41 DET_RELAY_RUNNING = 0,
50using DetRelayRecvFn = int (*)(
void *ctx, uint8_t *buf,
size_t cap);
57using DetRelaySendFn = int (*)(
void *ctx,
const uint8_t *buf,
size_t len);
60using DetRelayShutdownFn = void (*)(
void *ctx);
67 DetRelayShutdownFn shutdown;
96void det_relay_init(DetRelay *r,
const DetRelayEnd *client,
const DetRelayEnd *origin);
102DetRelayStatus det_relay_step(DetRelay *r);
115void det_relay_note_eof(DetRelay *r,
bool origin);
User-facing configuration for DeterministicESPAsyncWebServer.
#define DETWS_RELAY_BUF
Per-direction relay buffer size (bytes) for services/relay (DETWS_ENABLE_RELAY).