Mercurial > hg > Members > nobuyasu > tightVNCProxy
changeset 142:3d765eb3aa62
merge 141
author | Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 03 Sep 2011 13:49:14 +0900 |
parents | fc77596d3064 (current diff) 484fc6e38af7 (diff) |
children | 1a0c60efc627 |
files | |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/myVncProxy/AcceptClient.java Sat Sep 03 13:47:08 2011 +0900 +++ b/src/myVncProxy/AcceptClient.java Sat Sep 03 13:49:14 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);