diff src/main/java/ac/ryukyu/treevnc/client/EchoClient.java @ 2:dca3bd61b830

before change MyVncClient.java
author Yu Taninari <you@cr.ie.u-ryukyu.ac.jp>
date Mon, 09 Jul 2012 18:47:33 +0900
parents 75b54fd9e73a
children e7ce2b2ffed8
line wrap: on
line diff
--- a/src/main/java/ac/ryukyu/treevnc/client/EchoClient.java	Tue Jul 03 13:34:43 2012 +0900
+++ b/src/main/java/ac/ryukyu/treevnc/client/EchoClient.java	Mon Jul 09 18:47:33 2012 +0900
@@ -43,18 +43,18 @@
 
 	// VncViewerから引数をもらってきてproxy役を認識する
 	public EchoClient(String name, MyVncClient client) {
-		this.client = client;
+		this.client = (InterfaceForViewer) client;
 		this.name = name;
 	}
 
 	public EchoClient(String name, MyVncClient client, int echoPort) {
-		this.client = client;
+		this.client = (InterfaceForViewer) client;
 		this.name = name;
 		this.echoPort = echoPort;
 	}
 
 	public EchoClient(EchoClient echo, MyVncClient client) {
-		this.client = client;
+		this.client = (InterfaceForViewer) client;
 		this.name = echo.name;
 		leaderflag = echo.leaderflag;
 		parent = echo.parent;