Semi working multi client system

This commit is contained in:
2025-08-13 21:30:52 +02:00
parent a3884092ba
commit ecfb279fcd
3 changed files with 43 additions and 26 deletions
+6 -2
View File
@@ -5,6 +5,10 @@ fn main() {
let mut con = GhostClient::connect("0.0.0.0:443", (0, 0, 0, 0), 7525).unwrap();
con.send("Hello from client!".as_bytes()).unwrap();
let response = con.read_bytes(1024).unwrap();
println!("From server: {}", String::from_utf8(response).unwrap());
println!("From server 2: {:?}", con.read_bytes(1024).unwrap());
println!(
"From server: {} ({response:?})",
String::from_utf8(response.clone()).unwrap(),
);
// println!("From server 2: {:?}", con.read_bytes(1024).unwrap());
// println!("From server 3: {:?}", con.read_bytes(1024).unwrap());
}