05) Adding /help & /quit server commands 06) Handling multiple connections concurrently 07) Letting users kinda chat 08) Letting users actually chat 09) Assigning names to users 10) Letting users edit their names with /name 11) Freeing user's name if they disconnect 12) Adding a ...
05) Adding /help & /quit server commands 06) Handling multiple connections concurrently 07) Letting users kinda chat 08) Letting users actually chat 09) Assigning names to users 10) Letting users edit their names with /name 11) Freeing user's name if they disconnect 12) Adding a...
// stream is infinite - take just 5 elements and then disconnect let mut stream = stream.take(num); while let Some(item) = stream.next().await { println!("\treceived: {}", item.unwrap().message); } // stream is droped here and the disconnect info is send to server} async fn ...
we would echo it back to them. However, we are not concerned with the text that is sent over the socket. Whatever the client sends, we want to respond with the test file, since that is the sole purpose of our server. Let's update theTextcase in thehandle()function to do that: ...
Once it's done, the make script will exit and the GDBServer will report the TCP/IP connection has closed. Hooray! You flashed your RTL8710! Talking to it Disconnect power: the 3V3 pin from the debugger, which is powering the RTL8710. Then wire up the USB-to-Serial adapter. The adapte...
Names are not removed from the set when a user disconnects, so after a name is taken it can never be used again, not until we restart the server. Unfortunately there's a tricky obstacle we have to overcome before we can fix this....
Names are not removed from the set when a user disconnects, so after a name is taken it can never be used again, not until we restart the server. Unfortunately there's a tricky obstacle we have to overcome before we can fix this....
05) Adding /help & /quit server commands 06) Handling multiple connections concurrently 07) Letting users kinda chat 08) Letting users actually chat 09) Assigning names to users 10) Letting users edit their names with /name 11) Freeing user's name if they disconnect 12) Adding a mai...
Names are not removed from the set when a user disconnects, so after a name is taken it can never be used again, not until we restart the server. Unfortunately there's a tricky obstacle we have to overcome before we can fix this....
05) Adding /help & /quit server commands 06) Handling multiple connections concurrently 07) Letting users kinda chat 08) Letting users actually chat 09) Assigning names to users 10) Letting users edit their names with /name 11) Freeing user's name if they disconnect 12) Adding a ma...