code wiki / _hdl_build / nx_ssh_put_lib.nx

nx_ssh_put_lib.nx

buildroot/runtime/_hdl_build/nx_ssh_put_lib.nx

2636 B48 linesdepth 10pulls 22 transitivereach 1 importersview sourcekind librarytopic ssh
docsdependenciesstructsconstsfunctions

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

nx_syscalls.nx nx_ssh_lib.nx nx_ssh_put_lib.nx nx_inet_fetch_deploy.nx

imports: nx_syscalls.nxnx_ssh_lib.nx

imported by: nx_inet_fetch_deploy.nx

structs

none

consts

6const K_MAGIC_1048576: i64 = 1048576
7const K_MAGIC_16384: i64 = 16384
8const K_MAGIC_65536: i64 = 65536
9const K_MAGIC_1024: i64 = 1024

functions

11func sshp_slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != 0 as u8 { n = n + 1 } return n }
called by 1: main
14func sshp_put_file(st: *SshState, wcmd: *u8, wcmdlen: i64, data: *u8, datalen: i64) -> i64