ProtoCore v0.0.2
Deterministic, zero-heap network stack for embedded targets
Loading...
Searching...
No Matches
scp.h File Reference

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.

Detailed Description

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.

Author
Douglas Quigg (dstroy0)
Date
2026

Definition in file scp.h.