test: display_byte

This commit is contained in:
Ahmet Kaan GÜMÜŞ 2023-10-15 22:08:47 +03:00
parent db0bf1d646
commit 65e3cf64c4
2 changed files with 3 additions and 0 deletions

View file

@ -6,6 +6,8 @@ TCP File Transfer Server and Client in Rust
☑ Remove memory limitations. [d42412c](https://github.com/Tahinli/rust-tcp-file-transfer/pull/1/commits/d42412c57d7d95672ba64b3e489b95f1c4b04a08)
☐ Bidirectional transfer.
☐ Folder transfer.
☐ Remember where it stopped.

View file

@ -209,6 +209,7 @@ impl FileInfo
{
// try then commit
println!("Done: Handshake -> {}", self.location);
println!("{:#?} ", handshake);
let size = String::from_utf8(handshake.clone()).unwrap().parse().unwrap();
handshake.push(b'\n');
self.send_exact(&handshake.as_slice(), stream);