Description: This article introduces a Java ServerSocket socket server and and client communication methods. The principle is established on the server side ServerSocket ports and eavesdropping, reception to the client connection request to establish socket, the socket to be input and output streams. The new Socket client and access input and output streams. Server and client input and output streams used after the establishment of writeLine (), and println () side France each other to send and receive data. To improve code efficiency, the establishment of two categories clientAgent and serverAgent.
File list (Check if you may need any files):