June 2017
Intermediate to advanced
304 pages
7h 12m
English
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 connection with them:

The following are the steps that occur when the connection is established:
ServerSocket server = new ServerSocket( PORT );
Socket serverclient = server.accept();
Read now
Unlock full access