本帖最后由 左华清 于 2012-1-7 16:09 编辑
ServerSocket server = new ServerSocket(10000)
Socket incoming = server.accept()
BufferedReader in = new BufferedReader(new InputStreamReader(incoming.getInputStream()));
PrintWriter out = new PrintWriter(incoming.getOutputStream(),true);
in.close()与out.close() 关闭有没有先后顺序呀? |