Mercurial > hg > Members > nobuyasu > tightVNCProxy
changeset 122:2ff8d5a226c9
modify VncProxyService.java
author | e085711 |
---|---|
date | Sun, 07 Aug 2011 15:47:52 +0900 |
parents | df68f1f9034d |
children | 5dba59a88d25 |
files | src/myVncProxy/AcceptClient.java src/myVncProxy/MyRfbProto.java src/myVncProxy/VncProxyService.java |
diffstat | 3 files changed, 4 insertions(+), 18 deletions(-) [+] |
line wrap: on
line diff
--- a/src/myVncProxy/AcceptClient.java Sun Aug 07 02:18:23 2011 +0900 +++ b/src/myVncProxy/AcceptClient.java Sun Aug 07 15:47:52 2011 +0900 @@ -31,7 +31,6 @@ // クライアントからのメッセージを待ち、受け取ったメッセージをそのまま返す try { - while (true) { line = is.readLine(); port = is.readLine();
--- a/src/myVncProxy/MyRfbProto.java Sun Aug 07 02:18:23 2011 +0900 +++ b/src/myVncProxy/MyRfbProto.java Sun Aug 07 15:47:52 2011 +0900 @@ -77,22 +77,10 @@ MyRfbProto(String h, int p, VncViewer v) throws IOException { super(h, p, v); - cliList = new LinkedList<Socket>(); - cliListTmp = new LinkedList<Socket>(); - createBimgFlag = 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>(); - cliListTmp = new LinkedList<Socket>(); - createBimgFlag = false; - // sendThreads = new LinkedList<Thread>(); - // executor = Executors.newCachedThreadPool(); - // executor = Executors.newSingleThreadExecutor(); } // over write @@ -123,7 +111,7 @@ acceptPort = port; } - // 5550を開けるが、開いてないなら+1のポートを開ける。 + // 5999を開けるが、開いてないなら+1のポートを開ける。 void selectPort(int p) { int port = p; while (true) { @@ -311,7 +299,7 @@ rectW = readU16(); // 8 rectH = readU16(); // 10 encoding = readU32(); // 12 - // System.out.println("encoding = "+encoding); +// System.out.println("encoding = "+encoding); if (encoding == EncodingZRLE|| encoding==EncodingZRLEE||encoding==EncodingZlib) zLen = readU32(); else
--- a/src/myVncProxy/VncProxyService.java Sun Aug 07 02:18:23 2011 +0900 +++ b/src/myVncProxy/VncProxyService.java Sun Aug 07 15:47:52 2011 +0900 @@ -370,14 +370,13 @@ if (preferredEncoding != RfbProto.EncodingZlib) { encodings[nEncodings++] = RfbProto.EncodingZlib; } - /* if (preferredEncoding != RfbProto.EncodingCoRRE) { encodings[nEncodings++] = RfbProto.EncodingCoRRE; } if (preferredEncoding != RfbProto.EncodingRRE) { encodings[nEncodings++] = RfbProto.EncodingRRE; } - +/* if (options.compressLevel >= 0 && options.compressLevel <= 9) { encodings[nEncodings++] = RfbProto.EncodingCompressLevel0 + options.compressLevel; @@ -411,7 +410,7 @@ if (encodingsWereChanged) { try { - //rfb.writeSetEncodings(encodings, nEncodings); + rfb.writeSetEncodings(encodings, nEncodings); if (vc != null) { vc.softCursorFree(); }