Mercurial > hg > Members > you > BroadCastTreeVNC
view src/treeVnc/TreeVnc.java @ 5:970d5ac80256
add MyDataInputStream.java and DataInputStream1.java
author | one |
---|---|
date | Mon, 23 Apr 2012 21:10:23 +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||argv.length==3) { if ("-p".equals(argv[0])) { System.out.println("proxy"); // String[] temp = new String[0]; VncProxyService proxy = new VncProxyService(); proxy.treeVncProxy(argv); } else if ("-reg".equals(argv[0])||"-c".equals(argv[0])) { System.out.println("client"); MyVncClient client = new MyVncClient(); client.treeVncClient(argv); } 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"); } } }