Mercurial > hg > Members > nobuyasu > tightVNCProxy
comparison src/acceptThread.java @ 23:b51bb7bc0766
test update
author | e085711 |
---|---|
date | Sun, 24 Apr 2011 16:48:39 +0900 |
parents | 2840c7a259f1 |
children |
comparison
equal
deleted
inserted
replaced
22:05ff813c04fe | 23:b51bb7bc0766 |
---|---|
1 import java.net.BindException; | |
1 import java.net.Socket; | 2 import java.net.Socket; |
2 import java.io.IOException; | 3 import java.io.IOException; |
3 | 4 |
4 public class acceptThread implements Runnable { | 5 public class acceptThread implements Runnable { |
5 MyRfbProto rfb; | 6 MyRfbProto rfb; |
6 | 7 |
7 acceptThread(MyRfbProto _rfb) { | 8 acceptThread(MyRfbProto _rfb) { |
8 rfb = _rfb; | 9 rfb = _rfb; |
9 } | 10 } |
10 | 11 |
12 | |
11 public void run() { | 13 public void run() { |
14 rfb.selectPort(); | |
15 | |
12 while (true) { | 16 while (true) { |
13 try { | 17 try { |
14 Socket newCli = rfb.accept(); | 18 Socket newCli = rfb.accept(); |
15 rfb.sendInitData(newCli); | 19 rfb.sendInitData(newCli); |
16 rfb.addSock(newCli); | 20 rfb.addSock(newCli); |