|
ProtoCore v0.0.2
Deterministic, zero-heap network stack for embedded targets
|
SCP (RCP) protocol wire codec - the pure, host-testable half of the SCP-over-SSH server (PC_ENABLE_SSH_SCP). More...
#include "protocore_config.h"Go to the source code of this file.
SCP (RCP) protocol wire codec - the pure, host-testable half of the SCP-over-SSH server (PC_ENABLE_SSH_SCP).
SCP transfers a file over an SSH exec "scp …" channel using the old rcp line protocol: the source side sends a control line C<mode> <size> <name>\n, the peer acks with a 0 byte, then the file bytes flow, ended by a 0 byte and another ack. This file parses/builds the command line and the control line and knows the ack bytes - no filesystem, no SSH, no Arduino, zero heap. The fs::FS sink/source state machine + the channel glue live in server/ssh_scp.
Definition in file scp.h.