Mercurial > hg > Members > nobuyasu > tightVNCClient
changeset 87:6c43d40abfe6
modify EchoClient
author | one |
---|---|
date | Thu, 08 Sep 2011 16:03:16 +0900 |
parents | 29e43be288ca |
children | d3e806372657 3ea33e683522 |
files | src/myVncClient/EchoClient.java src/myVncClient/MyVncClient.java src/myVncClient/VncCanvas.java |
diffstat | 3 files changed, 20 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/src/myVncClient/EchoClient.java Tue Sep 06 06:23:20 2011 +0900 +++ b/src/myVncClient/EchoClient.java Thu Sep 08 16:03:16 2011 +0900 @@ -30,6 +30,15 @@ public EchoClient() { } + + public EchoClient(EchoClient echo) { + this.name = echo.name; + leaderflag= echo.leaderflag; + parent = echo.parent; + treenum = echo.treenum; + client = echo.client; + checkMove = (MyVncClient)echo.client; + } // VncViewerから引数をもらってきてproxy役を認識する public EchoClient(String name,MyVncClient client) { this.client = client; @@ -199,12 +208,13 @@ //runflag = true; } - /* + Thread.sleep(1000); - if(checkRepetition.equals("skip") &&!(waitReply.passflag)) { + if(!(checkMove.vncFrame.isShowing())&&"skip".equals(checkRepetition)) { + System.out.println("in"); openport(); notfoundParent(); - }*/ + } } catch (UnknownHostException e) {
--- a/src/myVncClient/MyVncClient.java Tue Sep 06 06:23:20 2011 +0900 +++ b/src/myVncClient/MyVncClient.java Thu Sep 08 16:03:16 2011 +0900 @@ -170,13 +170,15 @@ */ echoValue = new EchoClient(echoValue, this); + //echoValue = new EchoClient(echoValue); + try { Thread.sleep(ran); } catch (InterruptedException e1) { e1.printStackTrace(); } - if (counter >= 3) { + if (counter >= 4) { echoValue.openport(); echoValue.notfoundParent(); } @@ -250,7 +252,8 @@ // num4 if ( leaderflag != null) { while (true) { - echoValue = new EchoClient(echoValue, this); + //echoValue = new EchoClient(echoValue, this); + echoValue = new EchoClient(echoValue); echoValue.openport(); // runflag = echo.losthost(); if (echoValue.losthost()) {
--- a/src/myVncClient/VncCanvas.java Tue Sep 06 06:23:20 2011 +0900 +++ b/src/myVncClient/VncCanvas.java Thu Sep 08 16:03:16 2011 +0900 @@ -1603,6 +1603,7 @@ if ((evt.getKeyChar() == 'r' || evt.getKeyChar() == 'R') && evt.getID() == KeyEvent.KEY_PRESSED) { // Request screen update. + /* try { rfb.writeFramebufferUpdateRequest(0, 0, rfb.framebufferWidth, rfb.framebufferHeight, @@ -1610,6 +1611,7 @@ } catch (IOException e) { e.printStackTrace(); } + */ } } else { // Input enabled.