Configuring server-client communication on Rust

I want to do server-client emulation over TCP / IP, I hope I put it correctly, correct me if there is an error.

  1. How do I make a loop so that the server program waits for a request from the client indefinitely? I assume it's similar to GameLoop.

  2. How do I make a simple request from a client to this server?

  3. How do I make the request processing on the server received from the client?

I have no experience in this field, please answer read more, thank you in advance :)

Author: Vyacheslav Odinokov, 2020-03-18