# HG changeset patch # User Shinji KONO # Date 1401070257 -32400 # Node ID 16d8f2f7c8e120386520b423fd6ef06f46db6ea6 # Parent 804b1ce07aa08ab1149c267ff517bde050285640 remove unnecessary code diff -r 804b1ce07aa0 -r 16d8f2f7c8e1 src/main/java/jp/ac/u_ryukyu/treevnc/server/state/ReconnectionRequest.java --- a/src/main/java/jp/ac/u_ryukyu/treevnc/server/state/ReconnectionRequest.java Mon May 26 11:06:27 2014 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,32 +0,0 @@ -package jp.ac.u_ryukyu.treevnc.server.state; - -import java.io.DataOutputStream; -import java.io.IOException; -import java.net.Socket; -import java.net.UnknownHostException; - -import jp.ac.u_ryukyu.treevnc.server.VncProxyService; - -public class ReconnectionRequest { - private VncProxyService vps; - - public ReconnectionRequest(VncProxyService vps) { - this.vps = vps; - } - - void sendReconnection(String port) throws UnknownHostException, IOException { - int i = 0; - for(String client : vps.clientList()) { - if(i!=0) { - Socket echoSocket; - echoSocket = new Socket(client, 10001); - DataOutputStream os = new DataOutputStream(echoSocket.getOutputStream()); - os.writeBytes("reconnection\n"); - os.writeBytes(port+"\n"); - os.close(); - echoSocket.close(); - } - i++; - } - } -}