comparison src/main/java/jp/ac/u_ryukyu/treevnc/server/AcceptClient.java @ 64:e73e2c30c9a6

before update for build CUI version.
author Taninari YU <you@cr.ie.u-ryukyu.ac.jp>
date Sat, 25 Jan 2014 21:19:52 +0900
parents d9cf08c6415c
children 40d400a7ec84
comparison
equal deleted inserted replaced
63:84f1c39ba3bf 64:e73e2c30c9a6
177 os.close(); 177 os.close();
178 clients.close(); 178 clients.close();
179 } 179 }
180 } 180 }
181 } 181 }
182 182
183 /*
183 private void replyNormalChildren(PrintStream os, BufferedReader is, 184 private void replyNormalChildren(PrintStream os, BufferedReader is,
184 String port, String treeNumber, boolean flag) throws IOException, 185 String port, String treeNumber, boolean flag) throws IOException,
185 InterruptedException { 186 InterruptedException {
186 if (flag) 187 if (flag)
187 notifyThread(); 188 notifyThread();
198 System.out.println("num4=" + ls.get(Integer.parseInt(port))); 199 System.out.println("num4=" + ls.get(Integer.parseInt(port)));
199 runflag = false; 200 runflag = false;
200 is.close(); 201 is.close();
201 os.close(); 202 os.close();
202 } 203 }
203 204 */
205
204 private synchronized boolean replyCreateTree(PrintStream os, String port, 206 private synchronized boolean replyCreateTree(PrintStream os, String port,
205 String line) throws InterruptedException { 207 String line) throws InterruptedException {
206 if (addrRegistor == true) { 208 if (addrRegistor == true) {
207 ls.add(myAddress); 209 ls.add(myAddress);
208 addrRegistor = false; 210 addrRegistor = false;