Mercurial > hg > Applications > TreeVNC
comparison src/main/java/jp/ac/u_ryukyu/treevnc/CreateConnectionParam.java @ 327:293c35aa902b
add error message, add assure stream close, delete firstTime value in TreeRFBProto.
author | oc |
---|---|
date | Sun, 01 Feb 2015 17:34:09 +0900 |
parents | 1d4d5055a288 |
children | 230038d5127d |
comparison
equal
deleted
inserted
replaced
326:1d4d5055a288 | 327:293c35aa902b |
---|---|
13 | 13 |
14 public CreateConnectionParam(TreeRFBProto rfb) { | 14 public CreateConnectionParam(TreeRFBProto rfb) { |
15 this.rfb = rfb; | 15 this.rfb = rfb; |
16 } | 16 } |
17 | 17 |
18 public synchronized void findTreeVncRoot() throws InterruptedException { | 18 public synchronized void findTreeVncRoot() { |
19 rfb.createRootSelectionPanel(this); | 19 rfb.createRootSelectionPanel(this); |
20 FindRoot getBcast = new FindRoot(rfb.acceptPort,this); | 20 FindRoot getBcast = new FindRoot(rfb.acceptPort,this); |
21 getBcast.findRoot(); | 21 getBcast.findRoot(); |
22 // wait for RootSelection | 22 // wait for RootSelection |
23 wait(); | 23 try { |
24 } | 24 wait(); |
25 } catch (InterruptedException e) { | |
26 System.out.println("any thread interrupt when wait for FindRoot " + e.getMessage()); | |
27 } | |
28 } | |
25 | 29 |
26 /** | 30 /** |
27 * To find parent, send WHERE_TO_CONNECT command to the TreeVNC root | 31 * To find parent, send WHERE_TO_CONNECT command to the TreeVNC root |
28 * Incoming CONNECT_TO message is handled in MyRFBProto | 32 * Incoming CONNECT_TO message is handled in MyRFBProto |
29 * @param v | 33 * @param v |