view src/acceptThread.java @ 22:05ff813c04fe

test update
author e085711
date Thu, 21 Apr 2011 20:11:04 +0900
parents 2840c7a259f1
children b51bb7bc0766
line wrap: on
line source

import java.net.Socket;
import java.io.IOException;

public class acceptThread implements Runnable {
	MyRfbProto rfb;

	acceptThread(MyRfbProto _rfb) {
		rfb = _rfb;
	}

	public void run() {
		while (true) {
			try {
				Socket newCli = rfb.accept();
				rfb.sendInitData(newCli);
				rfb.addSock(newCli);
			} catch (IOException e) {

			}
		}
	}
}