comparison src/myVncClient/MyRfbProto.java @ 78:fe94e353d595

modify
author e085711
date Tue, 30 Aug 2011 18:33:24 +0900
parents 83acdeca0539
children a542f92500ab 143c52bf3a94
comparison
equal deleted inserted replaced
77:42b08ecc4cb5 78:fe94e353d595
264 264
265 inNormalProtocol = true; 265 inNormalProtocol = true;
266 } 266 }
267 267
268 void sendRfbVersion(OutputStream os) throws IOException { 268 void sendRfbVersion(OutputStream os) throws IOException {
269 os.write(versionMsg_3_998.getBytes()); 269 // os.write(versionMsg_3_998.getBytes());
270 os.write(versionMsg_3_8.getBytes());
270 } 271 }
271 272
272 void readVersionMsg(InputStream is) throws IOException { 273 void readVersionMsg(InputStream is) throws IOException {
273 274
274 byte[] b = new byte[12]; 275 byte[] b = new byte[12];
365 rectX = readU16(); // 4 366 rectX = readU16(); // 4
366 rectY = readU16(); // 6 367 rectY = readU16(); // 6
367 rectW = readU16(); // 8 368 rectW = readU16(); // 8
368 rectH = readU16(); // 10 369 rectH = readU16(); // 10
369 encoding = readU32(); // 12 370 encoding = readU32(); // 12
370 System.out.println("encoding = "+encoding); 371 // System.out.println("encoding = "+encoding);
371 if (encoding == EncodingZRLE|| encoding==EncodingZRLEE||encoding==EncodingZlib) 372 if (encoding == EncodingZRLE|| encoding==EncodingZRLEE||encoding==EncodingZlib)
372 zLen = readU32(); 373 zLen = readU32();
373 else 374 else
374 zLen = 0; 375 zLen = 0;
375 is.reset(); 376 is.reset();