diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-05-08 22:19:34 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-05-08 22:20:04 +0300 |
| commit | 793f127e54dd5f2cfb78922470b7efcb74a1fa5e (patch) | |
| tree | df9a925c7d4dc4be64ffd77cf5dfe3e5abb273a0 /tests/multi_client.rs | |
| parent | bb0dad86f81768c8b7d5894acf7cd53bd05d302b (diff) | |
feat(remote): add network-efficient thin client transport
Add SSH stdio remote attach, negotiate terminal-ANSI render encoding, move blit encoding server-side for remote clients, and split control/render writer delivery for safer backpressure.
Fixes #76
Diffstat (limited to 'tests/multi_client.rs')
| -rw-r--r-- | tests/multi_client.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/multi_client.rs b/tests/multi_client.rs index f65538b4..3294c98b 100644 --- a/tests/multi_client.rs +++ b/tests/multi_client.rs @@ -495,6 +495,7 @@ fn client_handshake( &encode_varint_u32(version), &encode_varint_u16(cols), &encode_varint_u16(rows), + &encode_varint_u32(0), // RenderEncoding::SemanticFrame ], ); stream @@ -519,6 +520,9 @@ fn client_handshake( let (_server_version, consumed) = decode_varint_u32(&payload, offset)?; offset += consumed; + let (_encoding, consumed) = decode_varint_u32(&payload, offset)?; + offset += consumed; + if offset >= payload.len() { return Err("payload too short for Welcome.error option tag".into()); } @@ -542,7 +546,7 @@ fn client_handshake( fn connect_raw_client(client_socket: &Path, cols: u16, rows: u16) -> UnixStream { let mut stream = UnixStream::connect(client_socket).expect("should connect to client socket"); - client_handshake(&mut stream, 3, cols, rows).expect("handshake should succeed"); + client_handshake(&mut stream, 4, cols, rows).expect("handshake should succeed"); stream } |
