This commit is contained in:
Horhik 2021-01-08 12:59:01 +02:00
parent 67b2c20959
commit 871286221b
3 changed files with 3 additions and 3 deletions

View file

@ -94,7 +94,7 @@ async fn accept_client(stream: TcpStream, server_sender: SP) -> io::Result<()> {
pub fn responding_to_server(server_sender: SP, client_receiver: RP) -> io::Result<()> {
while let Ok(res) = client_receiver.recv() {
println!("From SERVER!:\n {}", res.message);
println!("From Server!:\n {}", res.message);
}
Ok(())
}

View file

@ -64,7 +64,7 @@ async fn accept_server(stream: TcpStream, client_sender: SP) -> io::Result<()> {
pub fn responding_to_client(client_sender: SP, server_receiver: RP) -> io::Result<()> {
while let Ok(res) = server_receiver.recv() {
println!("From SERVER!:\n {}", res.message);
println!("From Client!:\n {}", res.message);
}
Ok(())
}

View file

@ -33,7 +33,7 @@ use std::{
| | | | +----------------------+ | | +-----------------------------+ | | | |
| | | | | | | | | | | | | |
| | | | | Encode | | | | | | | | |
| | | | | <----------------------------- from JSON <-------------------------------- |
| <----------------------------- <----------------------------- from JSON <-------------------------------- |
| | | | | | | | | | | | | |
| | | | +----------------------+ | | +-----------------------------+ | | | |
+--------------+ | | | | | | | |