Mercurial > hg > Members > you > BroadCastTreeVNC
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/treeVnc/#TreeVnc.java# Tue Feb 21 04:10:12 2012 +0900 @@ -0,0 +1,37 @@ +package treeVnc; +/* +import myVncClient.MyVncClient; +import myVncProxy.VncProxyService; +*/ + +public class TreeVnc { + public static void main(String[] argv) { + /* + * SelectType select = new SelectType(); select.selectType(); + * + * while (select.wait) { try { Thread.sleep(1000); } catch + * (InterruptedException e) { e.printStackTrace(); } } + * System.out.println("test"); + */ + if (argv.length == 0) { + System.out.println("client"); + MyVncClient client = new MyVncClient(); + client.treeVncClient(argv); + } else if(argv.length == 1) { + if ("-p".equals(argv[0])) { + System.out.println("proxy"); + String[] temp = new String[0]; + VncProxyService proxy = new VncProxyService(); + proxy.treeVncProxy(temp); + } else { + System.out.println("usage : java -jar TreeVnc.jar (IpAddress) 5900"); + } + } else if(argv.length==2) { + System.out.println("proxy"); + VncProxyService proxy = new VncProxyService(); + proxy.treeVncProxy(argv); + } else{ + System.out.println("usage : java -jar TreeVnc.jar (IpAddress) 5900"); + } + } +}