Socket programming for TCP The java.net.Socket class represents a socket, and the java.net.ServerSocket class represents a server socket through which the server can listen to client sockets and establish a … - Selection from Distributed Computing in Java 9 [Book]