Mercurial > hg > Members > nobuyasu > tightVNCProxy
diff src/myVncProxy/AcceptClient.java @ 139:407343700ccc
modify AcceptClient.java
author | one |
---|---|
date | Wed, 31 Aug 2011 16:57:38 +0900 |
parents | 5dba59a88d25 |
children | f68f63c298d0 db5f735fd2b4 |
line wrap: on
line diff
--- a/src/myVncProxy/AcceptClient.java Tue Aug 30 19:01:36 2011 +0900 +++ b/src/myVncProxy/AcceptClient.java Wed Aug 31 16:57:38 2011 +0900 @@ -5,7 +5,7 @@ import java.net.*; import java.util.*; -public class AcceptClient extends Thread { +public class AcceptClient { int counter = 0, parentnum = 0/* 落ちたときの親の番号をカウントするためのもの */; LinkedList<String> ls = new LinkedList<String>(); boolean runflag = false; @@ -109,7 +109,10 @@ if (checkRepetition.equals(ls.getLast())) { checkRepetition = "stop"; } else { - checkRepetition = "go"; +// checkRepetition = "go"; + if((Integer.parseInt(checkRepetition) -1)/treebranch + == Integer.parseInt(port)) + checkRepetition = "skip"; } os.println(checkRepetition);