Introduction - If you have any usage issues, please Google them yourself
The specific form is a linked TCP client-server mode; Start the server on two machines (on a machine, too) on the client; In the client confirm whether success after input the correct server address, if success can send and receive data between the client and the server (can be any side is sending end, accordingly can also be a receiver), and can use a specific string control exit (here is bye); At the same time the client and the server should be able to real-time detect the running state of the other party, and for a particular state (e.g., exit) to make the right reaction behavior (assuming the server, the client is given in this situation should be automatically detected message and exit. Assuming the client exits, the server should automatically exit the message when it detects this, and close the connection to accept the next link.