Mercurial > hg > Members > nobuyasu > tightVNCClient
diff src/myVncClient/MyRfbProto.java @ 93:71bfbb5241bf
modify CuiMyVncClient
author | e085711 |
---|---|
date | Thu, 22 Sep 2011 05:43:48 +0900 |
parents | d89e03d99b7f |
children | 53236c2c1229 |
line wrap: on
line diff
--- a/src/myVncClient/MyRfbProto.java Thu Sep 22 05:16:18 2011 +0900 +++ b/src/myVncClient/MyRfbProto.java Thu Sep 22 05:43:48 2011 +0900 @@ -92,7 +92,7 @@ } MyRfbProto(String h, int p, MyVncClient v) throws IOException { - super(h, p, v); + super(h, p); this.viewer = v; cliList = new LinkedList<Socket>(); cliListTmp = new LinkedList<Socket>(); @@ -102,6 +102,20 @@ // executor = Executors.newCachedThreadPool(); // executor = Executors.newSingleThreadExecutor(); } + + MyRfbProto(String h, int p, CuiMyVncClient v) throws IOException { + super(h, p); + this.viewer = v; + cliList = new LinkedList<Socket>(); + cliListTmp = new LinkedList<Socket>(); + createBimgFlag = false; + proxyFlag = false; + // sendThreads = new LinkedList<Thread>(); + // executor = Executors.newCachedThreadPool(); + // executor = Executors.newSingleThreadExecutor(); + } + + MyRfbProto(String h, int p) throws IOException { super(h, p); cliList = new LinkedList<Socket>(); @@ -529,9 +543,7 @@ byte[] b = getImageBytes(bimg, imageFormat); // int len = b.length; byte[] length = castIntByte(b.length); - System.out.println("jpeg length = " + b.length); - - byte c = 0x05; +// System.out.println("jpeg length = " + b.length); os.write((byte)WriteJpegData); os.write(length); // length of jpeg data os.write(b); // jpeg data @@ -540,7 +552,8 @@ e.printStackTrace(); } } - + + // unnecessary method void readWriteJpegData() throws IOException { byte[] b = readJpegData(); viewer.writeScreenData(b, "jpeg");