comparison src/main/java/jp/ac/u_ryukyu/treevnc/TreeRFBProto.java @ 532:9292035b8d93

fix forloop
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sun, 05 May 2019 15:56:33 +0900
parents 9de5137e1598
children 4be31e107121
comparison
equal deleted inserted replaced
531:13d3c4341d14 532:9292035b8d93
75 private byte[] originalInitData = null; 75 private byte[] originalInitData = null;
76 private boolean childrenMulticast = true; 76 private boolean childrenMulticast = true;
77 private static int uniqueNodeId = 0; // uniquenodeid in all trees (less than MAX_UNIQUE_NODE_ID) 77 private static int uniqueNodeId = 0; // uniquenodeid in all trees (less than MAX_UNIQUE_NODE_ID)
78 78
79 private boolean stopBroadcast; 79 private boolean stopBroadcast;
80 public boolean multicastBlocking = true; 80 public boolean multicastBlocking = false;
81 81
82 public TreeRFBProto(boolean isTreeManager, ViewerInterface viewer) { 82 public TreeRFBProto(boolean isTreeManager, ViewerInterface viewer) {
83 nets.setMyRfb(this); 83 nets.setMyRfb(this);
84 this.isTreeManager = isTreeManager; 84 this.isTreeManager = isTreeManager;
85 this.viewer = viewer; 85 this.viewer = viewer;
903 ProtocolContext previousContext = getContext(); 903 ProtocolContext previousContext = getContext();
904 stopReceiverTask(); 904 stopReceiverTask();
905 setProtocolContext(workingProtocol); 905 setProtocolContext(workingProtocol);
906 this.connectionPresenter = connectionPresenter; 906 this.connectionPresenter = connectionPresenter;
907 connectionPresenter.viewer.setConnectionPresenter(connectionPresenter); 907 connectionPresenter.viewer.setConnectionPresenter(connectionPresenter);
908 if (connectionPresenter.isUseMulticast()) multicastBlocking = true;
908 connectionPresenter.addModel("ConnectionParamsModel", connectionPresenter.getConnectionParams()); 909 connectionPresenter.addModel("ConnectionParamsModel", connectionPresenter.getConnectionParams());
909 if (previousContext != null && isTreeManager() && hasParent()) { 910 if (previousContext != null && isTreeManager() && hasParent()) {
910 Reader previousReader = previousContext.getReader(); 911 Reader previousReader = previousContext.getReader();
911 Writer previousWriter = previousContext.getWriter(); 912 Writer previousWriter = previousContext.getWriter();
912 // exchangeDirectConnectedServer(previousReader, previousWriter); 913 // exchangeDirectConnectedServer(previousReader, previousWriter);