摘要:
1、TCP通信服务端://新建ServerSocket对象监听8080端口(端口号最好1024-5 0-1023为系统保留端口)ServerSocket serverSocket=new ServerSocket(8080);//Socket socket=serverSocket.accept();//InputStream is=socket.getInputStream();//InputStreamReader in=new InputStreamReader(is);BufferedReader reader=new BufferedReader(in);//PrintWriter 阅读全文