Introduction - If you have any usage issues, please Google them yourself
The communication system as the main implementation process: open a thread to monitor customer connections, if there is a thread connection, and then get the client socket to the global variables were saved, and then continue to read the customer sent me a message, to close to a future of broadcasting to all clients which socket. Clients only need to enter the server' s IP address and user login nickname, the connection can communicate, the client set up a dedicated thread to accept the message sent from the server, and then determine a list of chat messages, or user information, and then distribute .