Introduction - If you have any usage issues, please Google them yourself
This topic is the design of a chat room software, including server and client, the main function of:
Server: socket initialization, create the server, waiting for connection requests from customers in specific ports, and can record all the successful connection; connection judgment command accept user sent, and sends the response command to the user; support multiple client connection, data transmission between a server and multiple clients; users can receive send chat messages, then all link forwarding client.
Client: establish and maintain a connection with the server at any time, and detecting the connection state; to send the user input information to the server; a message display area, can also display the historical information.