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

DNC drip-feed engine (DETWS_ENABLE_DNC) - stream a whole G-code program over a transport, pacing on reverse-channel XON/XOFF. More...

#include "ServerConfig.h"

Go to the source code of this file.

Detailed Description

DNC drip-feed engine (DETWS_ENABLE_DNC) - stream a whole G-code program over a transport, pacing on reverse-channel XON/XOFF.

The dnc codec (dnc.h) is pure framing; this drives the exchange: it emits the leader, the % program-start marker, every source line as a block, the % end marker, and the trailer, honoring software flow control - when the controller sends XOFF (DC3) it pauses and waits for XON (DC1) before the next write. Like the SMB / SMTP engines it works against a send/recv seam, so it is transport-agnostic (the same engine drip-feeds over a raw TCP socket for "Ethernet DNC" or over a UART for classic RS-232 DNC) and host-testable with a scripted mock controller.

Author
Douglas Quigg (dstroy0)
Date
2026

Definition in file dnc_stream.h.