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

SSH per-connection compression owner (server-to-client zlib / zlib@openssh.com). More...

#include "ServerConfig.h"
#include <stddef.h>
#include <stdint.h>

Go to the source code of this file.

Detailed Description

SSH per-connection compression owner (server-to-client zlib / zlib@openssh.com).

One owner for the whole compression concern (per the "one owner per cross-layer concern" rule): it holds the per-connection streaming compressor + its PSRAM-resident buffers, records the negotiated s2c algorithm, and starts the stream at the right moment (immediately after NEWKEYS for zlib, or after SSH_MSG_USERAUTH_SUCCESS for the delayed zlib@openssh.com). The transport packet layer asks it, per outbound packet, whether to compress and hands it the payload; nothing else touches compression state.

Only server-to-client is implemented (see ssh_zlib.h for why c2s stays none).

Author
Douglas Quigg (dstroy0)
Date
2026

Definition in file ssh_comp.h.