- 8
- 0
- 约1.97万字
- 约 66页
- 2017-03-08 发布于浙江
- 举报
例客户端程序 public class SingleTalkClient { public static void main(String[] args) throws IOException { Socket client = null; PrintWriter out = null; BufferedReader in = null; try { client = new Socket(, 4444); out = new PrintWriter(client.getOutputStream(), true); //auto flush in = new BufferedReader(new InputStreamReader(client.getInputStream())); } catch (UnknownHostException e) { System.err.println(Dont know about host: .); System.exit(1); } catch (IOException e) {
原创力文档

文档评论(0)