Mercurial > hg > Members > nobuyasu > tightVNCClient
comparison src/myVncClient/MyVncClient.java @ 85:ba6e672cc47c
update EchoClient.java
author | Yu Taninari <you@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 06 Sep 2011 06:20:47 +0900 |
parents | 143c52bf3a94 |
children | 6c43d40abfe6 |
comparison
equal
deleted
inserted
replaced
84:143c52bf3a94 | 85:ba6e672cc47c |
---|---|
1135 | 1135 |
1136 public void windowDeiconified(WindowEvent evt) { | 1136 public void windowDeiconified(WindowEvent evt) { |
1137 } | 1137 } |
1138 | 1138 |
1139 public void getParentName() { | 1139 public void getParentName() { |
1140 if (echoValue == null) { | 1140 if (echoValue == null) { |
1141 | 1141 |
1142 if (clientSocket == null) { | 1142 if (clientSocket == null) { |
1143 | 1143 |
1144 // echo = new EchoClient(pHost, this); | 1144 // echo = new EchoClient(pHost, this); |
1145 echoValue = new EchoClient(pHost, this, echoPort); | 1145 echoValue = new EchoClient(pHost, this, echoPort); |
1146 echoValue.openport(); | 1146 echoValue.openport(); |
1147 | 1147 |
1148 echoValue = echoValue.hostn("1"); | 1148 echoValue = echoValue.hostn("1"); |
1149 } else { | 1149 } else { |
1150 echoValue = new EchoClient(); | 1150 echoValue = new EchoClient(); |
1151 echoValue = echoValue.Interruption(clientSocket); | 1151 echoValue = echoValue.Interruption(clientSocket); |
1152 } | 1152 } |
1153 } | 1153 } |
1154 // proxyからの返信で接続先を決定する | 1154 // proxyからの返信で接続先を決定する |
1155 host = echoValue.responseLine; | 1155 host = echoValue.responseLine; |
1156 parent = echoValue.parent; | 1156 parent = echoValue.parent; |
1157 if (echoValue.treenum != null) { | 1157 if (echoValue.treenum != null) { |
1158 treenum = echoValue.treenum; | 1158 treenum = echoValue.treenum; |
1159 } else { | 1159 } else { |
1160 treenum = echoValue.treenum; | 1160 treenum = echoValue.treenum; |
1161 } | 1161 } |
1162 if (echoValue.leaderflag != null) { | 1162 if (echoValue.leaderflag != null) { |
1163 leaderflag = echoValue.leaderflag; | 1163 leaderflag = echoValue.leaderflag; |
1164 } else { | 1164 } else { |
1165 leaderflag = echoValue.leaderflag; | 1165 leaderflag = echoValue.leaderflag; |
1166 } | 1166 } |
1167 System.out.println("Parent =" + parent); | 1167 System.out.println("Parent =" + parent); |
1168 System.out.println("mynumber =" + treenum); | 1168 System.out.println("mynumber =" + treenum); |
1169 System.out.println("connect host =" + host); | 1169 System.out.println("connect host =" + host); |
1170 System.out.println("leaderflag(boolean) = " + leaderflag); | 1170 System.out.println("leaderflag(boolean) = " + leaderflag); |
1171 | 1171 |
1172 } | 1172 } |
1173 | 1173 |
1174 public void setEchoValue(EchoClient value) { | 1174 public void setEchoValue(EchoClient value) { |
1175 this.echoValue = value; | 1175 this.echoValue = value; |