diff src/myVncClient/CuiMyVncClient.java @ 89:3ea33e683522

modify RFB Protocol Version. From 3.998 to 3.855
author e085711
date Tue, 20 Sep 2011 05:56:11 +0900
parents 3bfe8845684c
children 7a1e934144e6
line wrap: on
line diff
--- a/src/myVncClient/CuiMyVncClient.java	Thu Sep 08 16:03:16 2011 +0900
+++ b/src/myVncClient/CuiMyVncClient.java	Tue Sep 20 05:56:11 2011 +0900
@@ -316,7 +316,7 @@
 				+ "." + rfb.clientMinor);
 
 
-		if(rfb.serverMinor == 998) {
+		if(rfb.serverMinor == 855) {
 			byte[] b = new byte[4];
 			b = rfb.readEchoPort();
 			echoPort = castByteInt(b);
@@ -384,9 +384,8 @@
 		if(rfb.serverMinor == 998) {
 			byte[] b = new byte[4];
 			b = rfb.readEchoPort();
-			echoPort = castByteInt(b);
+			int echoPort = castByteInt(b);
 
-			String hs = host;
 			InetAddress addr = InetAddress.getByName(host);
 			String h = new String(addr.getHostAddress());