7
|
1 package treeVnc;
|
1
|
2
|
|
3 import myVncClient.MyVncClient;
|
|
4 import myVncProxy.VncProxyService;
|
|
5
|
|
6 ;
|
|
7
|
|
8 public class TreeVnc {
|
|
9 public static void main(String[] argv) {
|
|
10 SelectType select = new SelectType();
|
|
11 select.selectType();
|
|
12
|
|
13 while (select.wait) {
|
|
14 try {
|
|
15 Thread.sleep(1000);
|
|
16 } catch (InterruptedException e) {
|
|
17 e.printStackTrace();
|
|
18 }
|
|
19 }
|
|
20 System.out.println("test");
|
|
21
|
|
22 if (select.type) {
|
|
23 MyVncClient client = new MyVncClient();
|
|
24 client.treeVncClient(argv);
|
|
25 } else {
|
|
26 VncProxyService proxy = new VncProxyService();
|
|
27 proxy.treeVncProxy(argv);
|
|
28 }
|
|
29 }
|
|
30 }
|