Mercurial > hg > Applications > TreeVNC
diff src/main/java/jp/ac/u_ryukyu/treevnc/MyRfbProto.java @ 36:b7d4d0349f99
write part of reconnection and remove warning.
author | one |
---|---|
date | Tue, 18 Sep 2012 17:23:19 +0900 |
parents | 1b81deb0abb3 |
children | c2f0b6907448 |
line wrap: on
line diff
--- a/src/main/java/jp/ac/u_ryukyu/treevnc/MyRfbProto.java Wed Sep 12 13:16:47 2012 +0900 +++ b/src/main/java/jp/ac/u_ryukyu/treevnc/MyRfbProto.java Tue Sep 18 17:23:19 2012 +0900 @@ -14,6 +14,7 @@ import com.glavsoft.rfb.protocol.ProtocolContext; import com.glavsoft.transport.Reader; import com.glavsoft.transport.Writer; +import com.glavsoft.viewer.Viewer; public class MyRfbProto { final static int FramebufferUpdateRequest = 3; @@ -100,6 +101,7 @@ writerRunning.set(2); os.close(); is.close(); + break; } catch (IOException e1) { } catch (TransportException e1) { e1.printStackTrace(); @@ -320,6 +322,10 @@ echo = _echo; } + public void setViewer(Viewer v) { + echo.setViewer(v); + } + public EchoClient getEcho() { return echo; }