Mercurial > hg > Members > nobuyasu > tightVNCClient
comparison src/myVncClient/MyVncClient.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 | 6c43d40abfe6 |
children | 7a1e934144e6 |
comparison
equal
deleted
inserted
replaced
87:6c43d40abfe6 | 89:3ea33e683522 |
---|---|
377 rfb.writeVersionMsg(); | 377 rfb.writeVersionMsg(); |
378 showConnectionStatus("Using RFB protocol version " + rfb.clientMajor | 378 showConnectionStatus("Using RFB protocol version " + rfb.clientMajor |
379 + "." + rfb.clientMinor); | 379 + "." + rfb.clientMinor); |
380 | 380 |
381 | 381 |
382 if(rfb.serverMinor == 998) { | 382 if(rfb.serverMinor == 855) { |
383 byte[] b = new byte[4]; | 383 byte[] b = new byte[4]; |
384 b = rfb.readEchoPort(); | 384 b = rfb.readEchoPort(); |
385 echoPort = castByteInt(b); | 385 echoPort = castByteInt(b); |
386 | 386 |
387 InetAddress addr = InetAddress.getByName(pHost); | 387 InetAddress addr = InetAddress.getByName(pHost); |
449 rfb.writeVersionMsg(); | 449 rfb.writeVersionMsg(); |
450 showConnectionStatus("Using RFB protocol version " + rfb.clientMajor | 450 showConnectionStatus("Using RFB protocol version " + rfb.clientMajor |
451 + "." + rfb.clientMinor); | 451 + "." + rfb.clientMinor); |
452 | 452 |
453 | 453 |
454 if(rfb.serverMinor == 998) { | 454 if(rfb.serverMinor == 855) { |
455 byte[] b = new byte[4]; | 455 byte[] b = new byte[4]; |
456 b = rfb.readEchoPort(); | 456 b = rfb.readEchoPort(); |
457 int echoPort = castByteInt(b); | 457 echoPort = castByteInt(b); |
458 | 458 |
459 InetAddress addr = InetAddress.getByName(host); | 459 InetAddress addr = InetAddress.getByName(host); |
460 String h = new String(addr.getHostAddress()); | 460 String h = new String(addr.getHostAddress()); |
461 | 461 |
462 getParentName(); | 462 getParentName(); |