Mercurial > hg > Members > you > BroadCastTreeVNC
comparison src/treeVnc/#TreeVnc.java# @ 0:756bfaf731f3
create new repository
author | Yu Taninari <you@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 21 Feb 2012 04:10:12 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:756bfaf731f3 |
---|---|
1 package treeVnc; | |
2 /* | |
3 import myVncClient.MyVncClient; | |
4 import myVncProxy.VncProxyService; | |
5 */ | |
6 | |
7 public class TreeVnc { | |
8 public static void main(String[] argv) { | |
9 /* | |
10 * SelectType select = new SelectType(); select.selectType(); | |
11 * | |
12 * while (select.wait) { try { Thread.sleep(1000); } catch | |
13 * (InterruptedException e) { e.printStackTrace(); } } | |
14 * System.out.println("test"); | |
15 */ | |
16 if (argv.length == 0) { | |
17 System.out.println("client"); | |
18 MyVncClient client = new MyVncClient(); | |
19 client.treeVncClient(argv); | |
20 } else if(argv.length == 1) { | |
21 if ("-p".equals(argv[0])) { | |
22 System.out.println("proxy"); | |
23 String[] temp = new String[0]; | |
24 VncProxyService proxy = new VncProxyService(); | |
25 proxy.treeVncProxy(temp); | |
26 } else { | |
27 System.out.println("usage : java -jar TreeVnc.jar (IpAddress) 5900"); | |
28 } | |
29 } else if(argv.length==2) { | |
30 System.out.println("proxy"); | |
31 VncProxyService proxy = new VncProxyService(); | |
32 proxy.treeVncProxy(argv); | |
33 } else{ | |
34 System.out.println("usage : java -jar TreeVnc.jar (IpAddress) 5900"); | |
35 } | |
36 } | |
37 } |