Mercurial > hg > Applications > TreeVNC
view src/main/java/jp/ac/u_ryukyu/treevnc/RequestScreenThread.java @ 207:b31903e5b02d
rename myRFBProto
author | oc |
---|---|
date | Wed, 02 Jul 2014 18:14:20 +0900 (2014-07-02) |
parents | 2b3eb4a9492f |
children | 42fcc9419498 |
line wrap: on
line source
package jp.ac.u_ryukyu.treevnc; import com.glavsoft.rfb.protocol.Protocol; public class RequestScreenThread implements Runnable { public TreeRFBProto rfb; Protocol protocol; public RequestScreenThread(TreeRFBProto _rfb) { rfb = _rfb; } /* (non-Javadoc) * @see java.lang.Runnable#run() * * request full screen update every 3 second. * restart send this immediately. * nobody call this. * */ public void run() { while (true) { try { synchronized(this) { wait(); } Thread.sleep(3000); rfb.writeFramebufferUpdateRequest(0, 0, protocol.getFbWidth(), protocol.getFbHeight(), false); } catch (Exception e) { e.printStackTrace(); break; } } } /** * do nothing. */ public synchronized void reStart() { notify(); } }