Mercurial > hg > Members > nobuyasu > tightVNCProxy
changeset 131:2a90459a05f0
modify CreateThread
author | e085711 |
---|---|
date | Tue, 30 Aug 2011 06:21:13 +0900 |
parents | cb00150c223e |
children | 4297c2011b71 7929f447692f |
files | src/myVncProxy/CreateThread.java src/myVncProxy/MyRfbProto.java src/myVncProxy/ProxyVncCanvas.java |
diffstat | 3 files changed, 8 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/myVncProxy/CreateThread.java Tue Aug 30 05:39:12 2011 +0900 +++ b/src/myVncProxy/CreateThread.java Tue Aug 30 06:21:13 2011 +0900 @@ -69,11 +69,13 @@ } catch (IOException e) { System.out.println(e); } +/* try { echoServer.close(); } catch (IOException e) { System.out.println(e); } +*/ }
--- a/src/myVncProxy/MyRfbProto.java Tue Aug 30 05:39:12 2011 +0900 +++ b/src/myVncProxy/MyRfbProto.java Tue Aug 30 06:21:13 2011 +0900 @@ -209,7 +209,7 @@ os.write(versionMsg_3_998.getBytes()); } - void readVersionMsg(InputStream is) throws IOException { + void readVersionMsg(InputStream is, OutputStream os) throws IOException { byte[] b = new byte[12]; @@ -233,12 +233,12 @@ } if (serverMinor == 998) { - sendPortNumber(); + sendPortNumber(os); } } - void sendPortNumber() throws IOException { + void sendPortNumber(OutputStream os) throws IOException { byte[] b = new byte[4]; b = castIntByte(geth.port); os.write(b); @@ -722,7 +722,8 @@ * initial connection of RFB protocol */ sendRfbVersion(os); - readVersionMsg(is); +// readVersionMsg(is); + readVersionMsg(is,os); sendSecurityType(os); readSecType(is); sendSecResult(os);