Mercurial > hg > Applications > TightVNC_orginal
view src/main/java/ac/ryukyu/treevnc/server/RequestScreenThread.java @ 11:57ae9fbb1245
add files
author | Taninari YU <you@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 21 Aug 2012 14:02:05 +0900 |
parents | |
children |
line wrap: on
line source
package ac.ryukyu.treevnc.server; import java.io.IOException; public class RequestScreenThread implements Runnable { MyRfbProtoProxy rfb; RequestScreenThread(MyRfbProtoProxy _rfb) { rfb = _rfb; } public void run() { while (true) { try { waitThread(); Thread.sleep(3000); rfb.writeFramebufferUpdateRequest(0, 0, rfb.framebufferWidth, rfb.framebufferHeight, false); } catch (Exception e) { e.printStackTrace(); break; } } } public synchronized void waitThread() { try{ wait(); }catch(InterruptedException e) { e.printStackTrace(); } } public synchronized void reStart() { notify(); } public void checkDelay() throws IOException { rfb.checkDelayData(); } }