diff 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
line wrap: on
line diff
--- a/src/myVncClient/MyVncClient.java	Thu Sep 01 17:40:02 2011 +0900
+++ b/src/myVncClient/MyVncClient.java	Tue Sep 06 06:20:47 2011 +0900
@@ -1137,37 +1137,37 @@
 	}
 	
 	public void getParentName() {
-	if (echoValue == null) {
+		if (echoValue == null) {
 
-		if (clientSocket == null) {
+			if (clientSocket == null) {
 
-//			echo = new EchoClient(pHost, this);
-			echoValue = new EchoClient(pHost, this, echoPort);
-			echoValue.openport();
+				// echo = new EchoClient(pHost, this);
+				echoValue = new EchoClient(pHost, this, echoPort);
+				echoValue.openport();
 
-			echoValue = echoValue.hostn("1");
-		} else {
-			echoValue = new EchoClient();
-			echoValue = echoValue.Interruption(clientSocket);
+				echoValue = echoValue.hostn("1");
+			} else {
+				echoValue = new EchoClient();
+				echoValue = echoValue.Interruption(clientSocket);
+			}
 		}
-	}
-	// proxyからの返信で接続先を決定する
-	host = echoValue.responseLine;
-	parent = echoValue.parent;
-	if (echoValue.treenum != null) {
-		treenum = echoValue.treenum;
-	} else {
-		treenum = echoValue.treenum;
-	}
-	if (echoValue.leaderflag != null) {
-		leaderflag = echoValue.leaderflag;
-	} else {
-		leaderflag = echoValue.leaderflag;
-	}
-	System.out.println("Parent =" + parent);
-	System.out.println("mynumber =" + treenum);
-	System.out.println("connect host =" + host);
-	System.out.println("leaderflag(boolean) = " + leaderflag);
+		// proxyからの返信で接続先を決定する
+		host = echoValue.responseLine;
+		parent = echoValue.parent;
+		if (echoValue.treenum != null) {
+			treenum = echoValue.treenum;
+		} else {
+			treenum = echoValue.treenum;
+		}
+		if (echoValue.leaderflag != null) {
+			leaderflag = echoValue.leaderflag;
+		} else {
+			leaderflag = echoValue.leaderflag;
+		}
+		System.out.println("Parent =" + parent);
+		System.out.println("mynumber =" + treenum);
+		System.out.println("connect host =" + host);
+		System.out.println("leaderflag(boolean) = " + leaderflag);
 
 	}