Semi working multi client system
This commit is contained in:
+6
-2
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user