Introduction - If you have any usage issues, please Google them yourself
Were prepared by the client and server programs, network chat function.
Method: server first establish a ListenSocket. When a client connection, and a new client calls ClientSocket, and maintained until the client disconnects, and ListenSocket continue to wait for another client to connect.
First, the client is also a Socket, and connect to the server and the server then calls the corresponding ClientSocket maintained until the end.