Mercurial > hg > Members > nobuyasu > tightVNCProxy
view src/myVncProxy/acceptThread.java @ 32:015d43bb2b62
add CreateHtmlFile
author | e085711 |
---|---|
date | Wed, 27 Apr 2011 05:43:22 +0900 |
parents | 13d4d3118cb8 |
children | 03d2e5db2135 |
line wrap: on
line source
package myVncProxy; import java.net.Socket; import java.io.IOException; public class acceptThread implements Runnable { MyRfbProto rfb; byte[] imageBytes; acceptThread(MyRfbProto _rfb ) { rfb = _rfb; } public void run() { rfb.selectPort(); while (true) { try { Socket newCli = rfb.accept(); rfb.sendInitData(newCli); rfb.createBimgFlag = true; rfb.addSockTmp(newCli); } catch (IOException e) { e.printStackTrace(); System.out.println(e); } } } }