Mercurial > hg > Members > nobuyasu > tightVNCClient
changeset 81:a542f92500ab
modify EchoClient.java
author | one |
---|---|
date | Wed, 31 Aug 2011 16:56:00 +0900 |
parents | 3bfe8845684c |
children | 7aea720eb485 |
files | src/myVncClient/EchoClient.java src/myVncClient/MyRfbProto.java |
diffstat | 2 files changed, 16 insertions(+), 13 deletions(-) [+] |
line wrap: on
line diff
--- a/src/myVncClient/EchoClient.java Wed Aug 31 15:15:23 2011 +0900 +++ b/src/myVncClient/EchoClient.java Wed Aug 31 16:56: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 15:15:23 2011 +0900 +++ b/src/myVncClient/MyRfbProto.java Wed Aug 31 16:56: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); */ } }