comparison src/myVncClient/EchoClient.java @ 87:6c43d40abfe6

modify EchoClient
author one
date Thu, 08 Sep 2011 16:03:16 +0900
parents 29e43be288ca
children d3e806372657 3ea33e683522
comparison
equal deleted inserted replaced
86:29e43be288ca 87:6c43d40abfe6
28 28
29 // WaitReplyに自分自身を渡している 29 // WaitReplyに自分自身を渡している
30 public EchoClient() { 30 public EchoClient() {
31 } 31 }
32 32
33
34 public EchoClient(EchoClient echo) {
35 this.name = echo.name;
36 leaderflag= echo.leaderflag;
37 parent = echo.parent;
38 treenum = echo.treenum;
39 client = echo.client;
40 checkMove = (MyVncClient)echo.client;
41 }
33 // VncViewerから引数をもらってきてproxy役を認識する 42 // VncViewerから引数をもらってきてproxy役を認識する
34 public EchoClient(String name,MyVncClient client) { 43 public EchoClient(String name,MyVncClient client) {
35 this.client = client; 44 this.client = client;
36 this.name = name; 45 this.name = name;
37 } 46 }
197 is.close(); 206 is.close();
198 echoSocket.close(); 207 echoSocket.close();
199 //runflag = true; 208 //runflag = true;
200 } 209 }
201 210
202 /* 211
203 Thread.sleep(1000); 212 Thread.sleep(1000);
204 if(checkRepetition.equals("skip") &&!(waitReply.passflag)) { 213 if(!(checkMove.vncFrame.isShowing())&&"skip".equals(checkRepetition)) {
214 System.out.println("in");
205 openport(); 215 openport();
206 notfoundParent(); 216 notfoundParent();
207 }*/ 217 }
208 218
209 219
210 } catch (UnknownHostException e) { 220 } catch (UnknownHostException e) {
211 System.err.println("Trying to connect to unknown host: " + e); 221 System.err.println("Trying to connect to unknown host: " + e);
212 } catch (IOException e) { 222 } catch (IOException e) {