comparison src/main/java/jp/ac/u_ryukyu/treevnc/CreateConnectionParam.java @ 126:775ce6a14f89

find root.
author oc
date Fri, 06 Jun 2014 19:17:32 +0900
parents 32c6563492f3
children cc1fcdc7657c
comparison
equal deleted inserted replaced
125:32c6563492f3 126:775ce6a14f89
1 package jp.ac.u_ryukyu.treevnc; 1 package jp.ac.u_ryukyu.treevnc;
2 2
3 import java.util.logging.Logger; 3 import java.util.logging.Logger;
4
5 import com.glavsoft.viewer.ViewerImpl; 4 import com.glavsoft.viewer.ViewerImpl;
6 5 import com.glavsoft.viewer.swing.ConnectionParams;
7 import jp.ac.u_ryukyu.treevnc.client.TreeVncProtocol; 6 import jp.ac.u_ryukyu.treevnc.client.TreeVncProtocol;
8 import jp.ac.u_ryukyu.treevnc.client.GetHostClient; 7 import jp.ac.u_ryukyu.treevnc.client.GetHostClient;
9 import jp.ac.u_ryukyu.treevnc.server.GetBroadCastProxy;
10 8
11 9
12 10
13 public class CreateConnectionParam { 11 public class CreateConnectionParam {
14 private String hostName; 12 private String hostName;
19 public CreateConnectionParam(MyRfbProto rfb) { 17 public CreateConnectionParam(MyRfbProto rfb) {
20 this.rfb = rfb; 18 this.rfb = rfb;
21 logger = Logger.getLogger(getClass().getName()); 19 logger = Logger.getLogger(getClass().getName());
22 } 20 }
23 21
24 public void communicationToProxy() { 22 public void findTreeVncRoot() {
25 GetHostClient getBcast = new GetHostClient(GetBroadCastProxy.MULTICAST_FIND_TREEVNC_ROOT); 23 GetHostClient getBcast = new GetHostClient(ConnectionParams.DEFAULT_VNC_ROOT_FINDER);
26 getBcast.getHost(); 24 getBcast.getHost();
27 portNumber = 0; 25 portNumber = 0;
28 do { 26 do {
29 try { 27 try {
30 Thread runBcast = new Thread(getBcast, "TreeVNC-root-finder"); 28 Thread runBcast = new Thread(getBcast, "TreeVNC-root-finder");