Mercurial > hg > Members > riono > TreeVNC_ja_comment
comparison src/main/java/jp/ac/u_ryukyu/treevnc/server/MyRfbProtoProxy.java @ 54:0ae87c7e767c
bug fix
author | one |
---|---|
date | Tue, 19 Nov 2013 15:29:04 +0900 |
parents | 20326a4b9d88 |
children | ac6f9e46566f |
comparison
equal
deleted
inserted
replaced
53:978261e2b396 | 54:0ae87c7e767c |
---|---|
19 import java.util.zip.Inflater; | 19 import java.util.zip.Inflater; |
20 | 20 |
21 import jp.ac.u_ryukyu.treevnc.MyRfbProto; | 21 import jp.ac.u_ryukyu.treevnc.MyRfbProto; |
22 | 22 |
23 public class MyRfbProtoProxy extends MyRfbProto { | 23 public class MyRfbProtoProxy extends MyRfbProto { |
24 final static String versionMsg_3_855 = "RFB 003.855\n"; | 24 //final static String versionMsg_3_855 = "RFB 003.855\n"; |
25 final static String versionMsg_3_856 = "RFB 003.856\n"; | |
25 /** | 26 /** |
26 * CheckMillis is one of new msgType for RFB 3.855. | 27 * CheckMillis is one of new msgType for RFB 3.855 and 3.856. |
27 */ | 28 */ |
28 final static byte SpeedCheckMillis = 4; | 29 final static byte SpeedCheckMillis = 4; |
29 final static int FramebufferUpdate = 0; | 30 final static int FramebufferUpdate = 0; |
30 final static int CheckDelay = 11; | 31 final static int CheckDelay = 11; |
31 final static int FramebufferUpdateRequest = 3; | 32 final static int FramebufferUpdateRequest = 3; |
398 * assertEquals(0, 1); // System.out.println(); return len; } | 399 * assertEquals(0, 1); // System.out.println(); return len; } |
399 */ | 400 */ |
400 | 401 |
401 void sendRfbVersion(Writer writer) throws IOException, TransportException { | 402 void sendRfbVersion(Writer writer) throws IOException, TransportException { |
402 // os.write(versionMsg_3_8.getBytes()); | 403 // os.write(versionMsg_3_8.getBytes()); |
403 writer.write(versionMsg_3_855.getBytes()); | 404 writer.write(versionMsg_3_856.getBytes()); |
404 } | 405 } |
405 | 406 |
406 int readVersionMsg(Reader reader, Writer writer) throws IOException, | 407 int readVersionMsg(Reader reader, Writer writer) throws IOException, |
407 TransportException { | 408 TransportException { |
408 | 409 |