Mercurial > hg > Members > nobuyasu > tightVNCProxy
changeset 140:484fc6e38af7
merge
author | Yu Taninari <e085734@ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 31 Aug 2011 16:59:08 +0900 |
parents | 407343700ccc (diff) 001f0b770f96 (current diff) |
children | 3d765eb3aa62 |
files | |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/myVncProxy/AcceptClient.java Tue Aug 30 19:59:02 2011 +0900 +++ b/src/myVncProxy/AcceptClient.java Wed Aug 31 16:59:08 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);