(The so-called socket is generally also called a socket, and the application program generally sends a request to the network through the socket or responds to the network request. Take J2SDK-1.3 as an example, the Socket and ServerSocket class libraries are located in the java package. ServerSocket is used on the server side, and Socket is used when establishing a network connection. When the connection is successful, both ends of the program will generate a Socket instance, operate this instance, and terminate the required session. For a network connection, sockets are peer-to-peer, and there is no difference, and no different levels are generated because of the server side or the client side. Whether it is Socket or ServerSocket, their office is terminated through the SocketImpl class and its subclasses.)