Mercurial > hg > Applications > TreeVNC
diff src/main/java/jp/ac/u_ryukyu/treevnc/MyRfbProto.java @ 102:1f7ee648e1f6
inflator in MyRfbProtoProxy should be renew to accept new VNC server socket.
old receiver / sender task are stopped in server change
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 23 May 2014 01:45:06 +0900 |
parents | da5f74092be8 |
children | 84f254d8bde4 |
line wrap: on
line diff
--- a/src/main/java/jp/ac/u_ryukyu/treevnc/MyRfbProto.java Thu May 22 22:03:14 2014 +0900 +++ b/src/main/java/jp/ac/u_ryukyu/treevnc/MyRfbProto.java Fri May 23 01:45:06 2014 +0900 @@ -374,7 +374,7 @@ public void close() { - //nothing + // none } public int getAcceptPort() { @@ -432,5 +432,15 @@ serialNum.flip(); bufs.addFirst(serialNum); } + + + public void resetDecoder() { + context.resetDecoder(); + } + + public void stopReceiverTask() { + if (context!=null) + context.cleanUpSession(null); + } }