diff src/myVncClient/echoClient.java @ 35:b3c9be50ef89

add WaitReply
author Yu Taninari <you@cr.ie.u-ryukyu.ac.jp>
date Fri, 08 Jul 2011 20:20:43 +0900
parents 76f5994f2af2
children 0729e856169d
line wrap: on
line diff
--- a/src/myVncClient/echoClient.java	Thu Jul 07 18:12:46 2011 +0900
+++ b/src/myVncClient/echoClient.java	Fri Jul 08 20:20:43 2011 +0900
@@ -6,7 +6,7 @@
 
 public class echoClient {
     public static Revalue value = new Revalue();
-	waitreply waitreply;// = new waitreply();
+	WaitReply WaitReply;// = new WaitReply();
     String responseLine,treenum,parent,line;
     public static Socket echoSocket = null;
     BufferedReader lostis = null;
@@ -17,9 +17,9 @@
     ServerSocket echoServer=null;
     public static String name;
     
-    //waitreplyに自分自身を渡している
+    //WaitReplyに自分自身を渡している
     public echoClient(){
-    	waitreply = new waitreply(this);
+    	WaitReply = new WaitReply(this);
     }
     
     
@@ -79,6 +79,10 @@
 
 
 
+    /**
+     * @param args select first connection or other
+     * @return
+     */
     Revalue hostn(String args){
 	// サーバーにメッセージを送る
 	if (echoSocket != null && os != null && is != null) {
@@ -116,9 +120,9 @@
 
 	    }
 	   
-	    waitreply = new waitreply(this);
-	    System.out.println(waitreply);
-		waitreply.start();
+	    WaitReply = new WaitReply(this);
+	    System.out.println(WaitReply);
+		WaitReply.start();
 			
 	}
 	return value;
@@ -231,7 +235,7 @@
 			System.out.println(e);
 		}
 		try{
-		    clientSocket.close();//waitreplyのacceptを終了させる
+		    clientSocket.close();//WaitReplyのacceptを終了させる
 		}
 		catch (IOException e){
 		    System.out.println(e);