Mercurial > hg > Members > nobuyasu > tightVNCClient
comparison 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 |
comparison
equal
deleted
inserted
replaced
87:6c43d40abfe6 | 89:3ea33e683522 |
---|---|
314 rfb.writeVersionMsg(); | 314 rfb.writeVersionMsg(); |
315 showConnectionStatus("Using RFB protocol version " + rfb.clientMajor | 315 showConnectionStatus("Using RFB protocol version " + rfb.clientMajor |
316 + "." + rfb.clientMinor); | 316 + "." + rfb.clientMinor); |
317 | 317 |
318 | 318 |
319 if(rfb.serverMinor == 998) { | 319 if(rfb.serverMinor == 855) { |
320 byte[] b = new byte[4]; | 320 byte[] b = new byte[4]; |
321 b = rfb.readEchoPort(); | 321 b = rfb.readEchoPort(); |
322 echoPort = castByteInt(b); | 322 echoPort = castByteInt(b); |
323 | 323 |
324 InetAddress addr = InetAddress.getByName(pHost); | 324 InetAddress addr = InetAddress.getByName(pHost); |
382 + "." + rfb.clientMinor); | 382 + "." + rfb.clientMinor); |
383 | 383 |
384 if(rfb.serverMinor == 998) { | 384 if(rfb.serverMinor == 998) { |
385 byte[] b = new byte[4]; | 385 byte[] b = new byte[4]; |
386 b = rfb.readEchoPort(); | 386 b = rfb.readEchoPort(); |
387 echoPort = castByteInt(b); | 387 int echoPort = castByteInt(b); |
388 | 388 |
389 String hs = host; | |
390 InetAddress addr = InetAddress.getByName(host); | 389 InetAddress addr = InetAddress.getByName(host); |
391 String h = new String(addr.getHostAddress()); | 390 String h = new String(addr.getHostAddress()); |
392 | 391 |
393 getParentName(); | 392 getParentName(); |
394 if(!(h.equals(host))) { | 393 if(!(h.equals(host))) { |