Introduction - If you have any usage issues, please Google them yourself
Chat program using mainly Java network package server socket and client socket implementation, the core part of the implementation ideas are as follows: the server according to the specified port to create a server socket and listens for connection requests on this port each a new client create a client socket connection with the server each one connected to the server has a connection pool to stay connected When one client sends a group chat or offline on-line information, the corresponding connection server program receives the message, to maintain all of its client connection broadcasts the message. When the client makes a separate chat, file transfer and other users need to specify a message sent to the server-side connection pooling find the corresponding traversal client, the message is sent separately to the client.