Mercurial > hg > Applications > TreeVNC
changeset 488:101b8a3ed8e4
reconnectionId
author | oshiro |
---|---|
date | Wed, 30 Jan 2019 19:20:15 +0900 |
parents | 520a9a3e4975 |
children | f06b0d50e4e2 |
files | Todo.txt src/main/java/jp/ac/u_ryukyu/treevnc/TreeVncCommand.java src/viewer_swing/java/com/glavsoft/viewer/Viewer.java |
diffstat | 3 files changed, 11 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/Todo.txt Fri Jan 25 20:49:29 2019 +0900 +++ b/Todo.txt Wed Jan 30 19:20:15 2019 +0900 @@ -1,3 +1,6 @@ +Wed Jan 30 18:55:55 JST 2019 + directconnection 時に nodeid を正しく設定する必要がある + Wed Nov 28 18:45:41 JST 2018 VNCサーバー側が死んだ時にTreeVNCが暴走する Done
--- a/src/main/java/jp/ac/u_ryukyu/treevnc/TreeVncCommand.java Fri Jan 25 20:49:29 2019 +0900 +++ b/src/main/java/jp/ac/u_ryukyu/treevnc/TreeVncCommand.java Wed Jan 30 19:20:15 2019 +0900 @@ -111,10 +111,10 @@ rfb.setId(id); rfb.setMyAddress(myHostName); rfb.setLeader(leader); - if (rfb.isTreeManager()) { + //if (rfb.isTreeManager()) { // markers tree root has a parent on a different network. - rfb.setId((short) -1); - } + // rfb.setId((short) -1); + //} try { rfb.getViewer().connectToParenet(port, hostname); } catch (IOException e) {
--- a/src/viewer_swing/java/com/glavsoft/viewer/Viewer.java Fri Jan 25 20:49:29 2019 +0900 +++ b/src/viewer_swing/java/com/glavsoft/viewer/Viewer.java Wed Jan 30 19:20:15 2019 +0900 @@ -226,6 +226,7 @@ final boolean hasJsch = checkJsch(); final boolean allowInteractive = allowAppletInteractiveConnections || ! isApplet; connectionPresenter = new ConnectionPresenter(hasJsch, allowInteractive); + connectionPresenter.setReconnectingId(myRfb.getId()); connectionPresenter.setNoConnection(noConnection); connectionPresenter.addModel("ConnectionParamsModel", connectionParams); connectionPresenter.startVNCConnection(this, false, null, null); @@ -388,6 +389,10 @@ return; } } + + if (rfb.isTreeManager()) { + rfb.setId((short) rfb.getNewNodeId()); + } cp.sendWhereToConnect(this); isTreeVNC = true; myRfb = rfb;