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"); } } }