diff src/myVncClient/WaitReply.java @ 60:18a19d8a09f4

add some files. for to use Client with CUI.
author e085711
date Fri, 05 Aug 2011 01:05:38 +0900
parents f2f4b0398f04
children f6cb1edc2036
line wrap: on
line diff
--- a/src/myVncClient/WaitReply.java	Fri Jul 29 17:26:17 2011 +0900
+++ b/src/myVncClient/WaitReply.java	Fri Aug 05 01:05:38 2011 +0900
@@ -5,14 +5,24 @@
 
 
 public class WaitReply extends Thread {
-	MyVncClient client;
+//	MyVncClient client;
+	InterfaceForViewer client;
 	private String treenum;
 
+
+/*	
 	public WaitReply(String treenum,MyVncClient client) {
 		this.client = client;
 		this.treenum = treenum;
 	}
+*/
 
+	public WaitReply(String treenum,InterfaceForViewer client) {
+		this.client = client;
+		this.treenum = treenum;
+	}
+
+	
 	public void run(){
 		Socket clientSocket = null;
 		ServerSocket echoServer=null;
@@ -24,11 +34,12 @@
 			}
 			catch (IOException e) {
 				System.out.println(e);
-			}                                                                                                                
+			}
 			try {
 			clientSocket = echoServer.accept();
 			if(clientSocket != null){
-				client.clientSocket = clientSocket;
+//				client.clientSocket = clientSocket;
+				client.setClientSocket(clientSocket);
 				client.init(null);
 				client.start_threads();
 				client.start();