Mercurial > hg > Members > nobuyasu > tightVNCProxy
comparison 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 |
comparison
equal
deleted
inserted
replaced
137:e97c0f82eaf0 | 139:407343700ccc |
---|---|
3 import java.net.Socket; | 3 import java.net.Socket; |
4 import java.io.*; | 4 import java.io.*; |
5 import java.net.*; | 5 import java.net.*; |
6 import java.util.*; | 6 import java.util.*; |
7 | 7 |
8 public class AcceptClient extends Thread { | 8 public class AcceptClient { |
9 int counter = 0, parentnum = 0/* 落ちたときの親の番号をカウントするためのもの */; | 9 int counter = 0, parentnum = 0/* 落ちたときの親の番号をカウントするためのもの */; |
10 LinkedList<String> ls = new LinkedList<String>(); | 10 LinkedList<String> ls = new LinkedList<String>(); |
11 boolean runflag = false; | 11 boolean runflag = false; |
12 private String name; | 12 private String name; |
13 boolean addrRegistor = true; | 13 boolean addrRegistor = true; |
107 os.println(port); | 107 os.println(port); |
108 | 108 |
109 if (checkRepetition.equals(ls.getLast())) { | 109 if (checkRepetition.equals(ls.getLast())) { |
110 checkRepetition = "stop"; | 110 checkRepetition = "stop"; |
111 } else { | 111 } else { |
112 checkRepetition = "go"; | 112 // checkRepetition = "go"; |
113 if((Integer.parseInt(checkRepetition) -1)/treebranch | |
114 == Integer.parseInt(port)) | |
115 checkRepetition = "skip"; | |
113 } | 116 } |
114 os.println(checkRepetition); | 117 os.println(checkRepetition); |
115 | 118 |
116 System.out.println("num4=" | 119 System.out.println("num4=" |
117 + ls.get(Integer.parseInt(port))); | 120 + ls.get(Integer.parseInt(port))); |