|
DeterministicESPAsyncWebServer v6.27.1
Zero-allocation, bounded-execution async HTTP server for ESP32
|
Server-side TCP relay / DNAT listener (DETWS_ENABLE_RELAY) - publish an internal host:port on a server port.
More...
#include "ServerConfig.h"Go to the source code of this file.
Server-side TCP relay / DNAT listener (DETWS_ENABLE_RELAY) - publish an internal host:port on a server port.
Wires the pure relay engine (relay.h) into the server: an inbound connection accepted on a published port is bridged to an origin (an outbound det_client connection to the internal service). A ConnProto::PROTO_RELAY connection handler opens the origin on accept, pumps bytes both ways each poll (via det_relay_step), and tears both down on close - the DNAT return path is automatic.
Usage (opt-in twice: compiled out by default, and inert until you publish a port):
Security: this is an open forward to whatever origin you publish - only publish trusted internal targets, and do not expose the front port to an untrusted network without an upstream ACL.
Definition in file relay_listener.h.