code wiki / _hdl_build / nx_ssh_put_lib.nx
nx_ssh_put_lib.nx
buildroot/runtime/_hdl_build/nx_ssh_put_lib.nx
about
nx_ssh_put_lib.nx -- the SOVEREIGN SSH file-PUT, extracted as a library (no main) so multiple deploy tools
reuse it (DRY): the dashboard deploy (nx_ssh_put) and the remote-fetch deploy (nx_inet_fetch_deploy) both
stream a local buffer to a remote `cat > path` over the team's own SSH client. license_tier: ORIGINAL
dependencies 2 imports · 1 importers
imports: nx_syscalls.nxnx_ssh_lib.nx
imported by: nx_inet_fetch_deploy.nx
structs
| none |
consts
| 6 | const K_MAGIC_1048576: i64 = 1048576 |
| 7 | const K_MAGIC_16384: i64 = 16384 |
| 8 | const K_MAGIC_65536: i64 = 65536 |
| 9 | const K_MAGIC_1024: i64 = 1024 |
functions
| 11 | func sshp_slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != 0 as u8 { n = n + 1 } return n } called by 1: main |
| 14 | func sshp_put_file(st: *SshState, wcmd: *u8, wcmdlen: i64, data: *u8, datalen: i64) -> i64 |