Mercurial > hg > Members > nobuyasu > tightVNCClient
comparison src/myVncClient/EchoClient.java @ 81:a542f92500ab
modify EchoClient.java
author | one |
---|---|
date | Wed, 31 Aug 2011 16:56:00 +0900 |
parents | c76e43a12796 |
children | 29e43be288ca |
comparison
equal
deleted
inserted
replaced
80:3bfe8845684c | 81:a542f92500ab |
---|---|
172 | 172 |
173 /** | 173 /** |
174 * if ((value.treenum = is.readLine()) != null) { | 174 * if ((value.treenum = is.readLine()) != null) { |
175 * System.out.println("treenum: " + value.treenum); } | 175 * System.out.println("treenum: " + value.treenum); } |
176 */ | 176 */ |
177 Thread.sleep(1000); | 177 |
178 client.init(); | 178 if(!(checkRepetition.equals("skip"))) { |
179 client.setEchoValue(this); | 179 Thread.sleep(1000); |
180 client.getParentName(); | 180 client.init(); |
181 client.start_threads(); | 181 client.setEchoValue(this); |
182 client.start(); | 182 client.getParentName(); |
183 // MyVncClient.main(this); | 183 client.start_threads(); |
184 | 184 client.start(); |
185 // 開いたソケットなどをクローズ | 185 // MyVncClient.main(this); |
186 os.close(); | 186 |
187 is.close(); | 187 // 開いたソケットなどをクローズ |
188 echoSocket.close(); | 188 os.close(); |
189 //runflag = true; | 189 is.close(); |
190 echoSocket.close(); | |
191 //runflag = true; | |
192 } | |
190 | 193 |
191 } catch (UnknownHostException e) { | 194 } catch (UnknownHostException e) { |
192 System.err.println("Trying to connect to unknown host: " + e); | 195 System.err.println("Trying to connect to unknown host: " + e); |
193 } catch (IOException e) { | 196 } catch (IOException e) { |
194 | 197 |