Mercurial > hg > Applications > AliceVNC
changeset 26:18dd339b98ea
bug fix
author | sugi |
---|---|
date | Sat, 08 Nov 2014 11:11:27 +0900 |
parents | 6cb444e8e646 |
children | 14c7bd581cc2 |
files | src/main/java/jp/ac/u_ryukyu/alicevnc/ReceiveChangeRequest.java |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main/java/jp/ac/u_ryukyu/alicevnc/ReceiveChangeRequest.java Sat Nov 08 11:04:43 2014 +0900 +++ b/src/main/java/jp/ac/u_ryukyu/alicevnc/ReceiveChangeRequest.java Sat Nov 08 11:11:27 2014 +0900 @@ -31,13 +31,15 @@ ods.put("parent", "changeRequest", order); new ReceiveChangeRequest(); } else { // this node is root. + order.route.add(info.from); if (order.messageID == MessageType.CurrentVNCInfo.getId()) { ods.put("currentServer", order); new ReceiveChangeRequest(); } else { - System.out.println("coming Server change request from "+ order.name); + System.out.println("coming Server change request from "+ order.name+" "+order.route.size()); //new CheckCurrentInfo(info); // check change Server flag. order.messageID = MessageType.StartNegotiate.getId(); + order.name = "node0"; ods.put(info.key, order); new ReceiveChangeRequest(); @@ -46,7 +48,7 @@ } else if (order.messageID == MessageType.StartNegotiate.getId()) { if (order.route.size() == 0) { // this node send ChangeVNCRequest - System.out.println("coming Server change request from "+ order.name); + System.out.println("coming StartNegotiate from "+ order.name); // String[] args = {"localhost"}; // // negotiate VNCServer by Viewer // Viewer.main(args);