comparison src/main/java/jp/ac/u_ryukyu/treevnc/server/MyRfbProtoProxy.java @ 33:9d3478d11d3b

Add the processing of client
author Taninari YU <you@cr.ie.u-ryukyu.ac.jp>
date Tue, 04 Sep 2012 06:06:17 +0900
parents 758d025ee24b
children f70008073a03
comparison
equal deleted inserted replaced
32:758d025ee24b 33:9d3478d11d3b
599 599
600 void readClientInit(Reader in) throws TransportException { 600 void readClientInit(Reader in) throws TransportException {
601 byte[] b = new byte[0]; 601 byte[] b = new byte[0];
602 in.readBytes(b); 602 in.readBytes(b);
603 } 603 }
604
605 public void writeFramebufferUpdateRequest(int x, int y, int w, int h,
606 boolean incremental) throws TransportException {
607 byte[] b = new byte[10];
608
609 b[0] = (byte) FramebufferUpdateRequest;
610 b[1] = (byte) (incremental ? 1 : 0);
611 b[2] = (byte) ((x >> 8) & 0xff);
612 b[3] = (byte) (x & 0xff);
613 b[4] = (byte) ((y >> 8) & 0xff);
614 b[5] = (byte) (y & 0xff);
615 b[6] = (byte) ((w >> 8) & 0xff);
616 b[7] = (byte) (w & 0xff);
617 b[8] = (byte) ((h >> 8) & 0xff);
618 b[9] = (byte) (h & 0xff);
619
620 // os.write(b);
621 }
622 604
623 } 605 }