Mercurial > hg > Members > nobuyasu > tightVNCProxy
diff src/RfbProto.java @ 8:67caa17deb6f
create accept setSoTimeout initServSock
author | e085711 |
---|---|
date | Sat, 16 Apr 2011 01:08:39 +0900 |
parents | d759a2ab6a7a |
children | a5d73cafc8fe |
line wrap: on
line diff
--- a/src/RfbProto.java Sat Apr 16 00:15:44 2011 +0900 +++ b/src/RfbProto.java Sat Apr 16 01:08:39 2011 +0900 @@ -129,10 +129,6 @@ return numBytesRead; } - boolean MYVNC = true; - Socket cliSock; - ByteBuffer buffer; - int rnBytes; // Java on UNIX does not call keyPressed() on some keys, for example // swedish keys To prevent our workaround to produce duplicate @@ -190,11 +186,6 @@ if (viewer.socketFactory == null) { sock = new Socket(host, port); - if (MYVNC) { - ServerSocket serverSock = new ServerSocket(5550); - cliSock = serverSock.accept(); - } - } else { try { Class factoryClass = Class.forName(viewer.socketFactory); @@ -569,6 +560,7 @@ int redMax, greenMax, blueMax, redShift, greenShift, blueShift; void readServerInit() throws IOException { + framebufferWidth = readU16(); framebufferHeight = readU16(); bitsPerPixel = readU8();