view src/treeVnc/#TreeVnc.java# @ 6:01cdbc95142f default tip

update build.xml
author Yu Taninari <you@cr.ie.u-ryukyu.ac.jp>
date Mon, 30 Apr 2012 16:04:44 +0900
parents 756bfaf731f3
children
line wrap: on
line source

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