Mercurial > hg > Members > nobuyasu > tightVNCClient
changeset 83:7aea720eb485
merge
author | Yu Taninari <you@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 31 Aug 2011 19:08:00 +0900 |
parents | 2eb52d563a05 (current diff) a542f92500ab (diff) |
children | 29e43be288ca |
files | |
diffstat | 2 files changed, 16 insertions(+), 13 deletions(-) [+] |
line wrap: on
line diff
--- a/src/myVncClient/EchoClient.java Wed Aug 31 19:06:36 2011 +0900 +++ b/src/myVncClient/EchoClient.java Wed Aug 31 19:08:00 2011 +0900 @@ -174,19 +174,22 @@ * if ((value.treenum = is.readLine()) != null) { * System.out.println("treenum: " + value.treenum); } */ - Thread.sleep(1000); - client.init(); - client.setEchoValue(this); - client.getParentName(); - client.start_threads(); - client.start(); -// MyVncClient.main(this); + + if(!(checkRepetition.equals("skip"))) { + Thread.sleep(1000); + client.init(); + client.setEchoValue(this); + client.getParentName(); + client.start_threads(); + client.start(); + // MyVncClient.main(this); - // 開いたソケットなどをクローズ - os.close(); - is.close(); - echoSocket.close(); - //runflag = true; + // 開いたソケットなどをクローズ + os.close(); + is.close(); + echoSocket.close(); + //runflag = true; + } } catch (UnknownHostException e) { System.err.println("Trying to connect to unknown host: " + e);
--- a/src/myVncClient/MyRfbProto.java Wed Aug 31 19:06:36 2011 +0900 +++ b/src/myVncClient/MyRfbProto.java Wed Aug 31 19:08:00 2011 +0900 @@ -791,8 +791,8 @@ writerRunning.set(2); os.close(); } catch (IOException e1) { + /* if socket closed cliList.remove(newCli); */ } - /* if socket closed cliList.remove(newCli); */ } }