Mercurial > hg > Members > nobuyasu > tightVNCProxy
view src/myVncProxy/AcceptThread.java @ 76:347c153f74c7
merge
author | Yu Taninari <e085734@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 28 Jul 2011 17:59:39 +0900 |
parents | 6fc4272db7e2 bf5ac06df675 |
children | 712a047908df |
line wrap: on
line source
package myVncProxy; import java.net.Socket; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; 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(); OutputStream os = newCli.getOutputStream(); InputStream is = newCli.getInputStream(); rfb.newClient(this, newCli, os, is); } catch (IOException e) { e.printStackTrace(); System.out.println(e); } } } }