Mercurial > hg > Applications > TightVNC_orginal
diff src/main/java/jp/ac/u_ryukyu/treevnc/server/VncProxyService.java @ 48:6ebe870da138
this version resolve change host problem.
author | one |
---|---|
date | Tue, 18 Dec 2012 17:56:49 +0900 |
parents | f3b775d3592a |
children | b0c7fad4c695 |
line wrap: on
line diff
--- a/src/main/java/jp/ac/u_ryukyu/treevnc/server/VncProxyService.java Thu Dec 06 17:51:29 2012 +0900 +++ b/src/main/java/jp/ac/u_ryukyu/treevnc/server/VncProxyService.java Tue Dec 18 17:56:49 2012 +0900 @@ -121,7 +121,7 @@ } else { // getHostData(); } - run(); + run1(); createConnectionAndStart(); getChangeScreenRequest(); // Should be used Client Socket. try { @@ -356,6 +356,7 @@ DataOutputStream os = new DataOutputStream( echoSocket.getOutputStream()); os.writeBytes("reconnection\n"); + System.out.println("port ==== " + port); os.writeBytes(port + "\n"); os.close(); } @@ -371,7 +372,7 @@ newVps.connectionParams.hostName = hostName; if (newVps.run1()) { newVps.createConnectionAndStart(); - newVps.createSocketAndSend(aClient.getList(), String.valueOf(opendPort)); + newVps.createSocketAndSend(aClient.getList(), String.valueOf(newVps.opendPort)); } else { newVps.cleanUpSession(); }