Mercurial > hg > Members > nobuyasu > tightVNCClient
changeset 43:15e64e9154b5
modify MyVncClient.java. add pHost
author | e085711 |
---|---|
date | Sat, 09 Jul 2011 13:17:54 +0900 |
parents | 129e999a2aa3 |
children | 034528dfb650 |
files | bin/java.policy.applet src/myVncClient/MyVncClient.java |
diffstat | 2 files changed, 4 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/bin/java.policy.applet Sat Jul 09 12:58:33 2011 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,7 +0,0 @@ -/* AUTOMATICALLY GENERATED ON Tue Apr 16 17:20:59 EDT 2002*/ -/* DO NOT EDIT */ - -grant { - permission java.security.AllPermission; -}; -
--- a/src/myVncClient/MyVncClient.java Sat Jul 09 12:58:33 2011 +0900 +++ b/src/myVncClient/MyVncClient.java Sat Jul 09 13:17:54 2011 +0900 @@ -692,10 +692,13 @@ * * port = readIntParameter("PORT", 5550); */ + String pHost; + if (mainArgs.length > 0) pHost = mainArgs[0]; + else pHost = "cls080.ie.u-ryukyu.ac.jp"; if (value == null) { if (clientSocket == null) { - echo = new echoClient(mainArgs[0]); + echo = new echoClient(pHost); echo.openport(); value = echo.hostn("1");