Introduction - If you have any usage issues, please Google them yourself
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.
Packet : 95302939java实现服务器和客户机通讯的的方法.rar filelist
java实现服务器和客户机通讯的的方法.doc