Mercurial > hg > Members > riono > TreeVNC_ja_comment
changeset 116:16d8f2f7c8e1
remove unnecessary code
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 26 May 2014 11:10:57 +0900 |
parents | 804b1ce07aa0 |
children | 92ceb7b1fe12 |
files | src/main/java/jp/ac/u_ryukyu/treevnc/server/state/ReconnectionRequest.java |
diffstat | 1 files changed, 0 insertions(+), 32 deletions(-) [+] |
line wrap: on
line diff
--- 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++; - } - } -}