comparison src/main/java/jp/ac/u_ryukyu/treevnc/server/MyRfbProtoProxy.java @ 115:804b1ce07aa0

remove unnecessary code
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 26 May 2014 11:06:27 +0900
parents 84f254d8bde4
children 38e461e9b9c9
comparison
equal deleted inserted replaced
114:425c45d0da12 115:804b1ce07aa0
460 void readSecType(Reader reader) throws TransportException { 460 void readSecType(Reader reader) throws TransportException {
461 byte[] b = new byte[1]; 461 byte[] b = new byte[1];
462 reader.read(b); 462 reader.read(b);
463 } 463 }
464 464
465 void readSecType(Reader is, Writer os) throws TransportException { 465
466 byte[] b = new byte[1];
467 is.readBytes(b);
468
469 int count = 260;
470 int[] data = { 0, 2, 0, -128, -1, -1, -1, -1, -1, -1, -1, -1, -55, 15,
471 -38, -94, 33, 104, -62, 52, -60, -58, 98, -117, -128, -36, 28,
472 -47, 41, 2, 78, 8, -118, 103, -52, 116, 2, 11, -66, -90, 59,
473 19, -101, 34, 81, 74, 8, 121, -114, 52, 4, -35, -17, -107, 25,
474 -77, -51, 58, 67, 27, 48, 43, 10, 109, -14, 95, 20, 55, 79,
475 -31, 53, 109, 109, 81, -62, 69, -28, -123, -75, 118, 98, 94,
476 126, -58, -12, 76, 66, -23, -90, 55, -19, 107, 11, -1, 92, -74,
477 -12, 6, -73, -19, -18, 56, 107, -5, 90, -119, -97, -91, -82,
478 -97, 36, 17, 124, 75, 31, -26, 73, 40, 102, 81, -20, -26, 83,
479 -127, -1, -1, -1, -1, -1, -1, -1, -1, -111, 73, -29, 30, 57,
480 -67, -75, -77, -49, -50, -99, -76, -80, -80, 14, 65, 57, -105,
481 -103, -54, -102, 3, 39, -44, 39, 35, 118, -84, -64, 37, -117,
482 -21, 89, -31, -68, 70, 5, 122, -92, -119, 9, 121, 63, -112,
483 -60, 122, -46, -69, -36, 92, -103, -92, 74, 92, -73, 87, 120,
484 -8, 116, -47, 111, 20, -41, 110, 122, -3, -94, 14, 42, -51,
485 -59, 48, -54, -125, 117, 60, 77, -52, -31, 98, 32, -2, -102,
486 -15, -29, 58, -14, -106, -116, -32, -86, 50, -32, -16, -3,
487 -123, 87, 88, -118, 10, 120, -107, -37, 125, -110, 59, 87, 93,
488 -24, 124, -99, 18, 78, -13, -49, -34, -24, -27, 1, 114, -67,
489 -98, -56, -3, 85, -67, -126, 77 };
490 for (int i = 0; i < count; i++) {
491 os.write((byte) data[i]);
492 os.flush();
493 }
494
495 byte[] c = new byte[256];
496 is.readBytes(c);
497
498 System.out.println(new String(c));
499
500 }
501 466
502 void sendSecResult(Writer os) throws TransportException { 467 void sendSecResult(Writer os) throws TransportException {
503 byte[] b = castIntByte(0); 468 byte[] b = castIntByte(0);
504 os.write(b); 469 os.write(b);
505 } 470 }