Mercurial > hg > Applications > TightVNC_orginal
diff src/main/java/jp/ac/u_ryukyu/treevnc/server/BroadCastProxy.java @ 38:c2f0b6907448
add doc directory
author | one |
---|---|
date | Thu, 27 Sep 2012 19:32:25 +0900 |
parents | f70008073a03 |
children |
line wrap: on
line diff
--- a/src/main/java/jp/ac/u_ryukyu/treevnc/server/BroadCastProxy.java Wed Sep 19 19:08:07 2012 +0900 +++ b/src/main/java/jp/ac/u_ryukyu/treevnc/server/BroadCastProxy.java Thu Sep 27 19:32:25 2012 +0900 @@ -14,22 +14,22 @@ str = _str; } - void createSocket(String addr) { - while (true) { - try { - Thread.sleep(1000); - socket = new Socket(addr, port); - os = new PrintStream(socket.getOutputStream()); - os.println(str); - os.close(); - socket.close(); - break; - } catch (IOException e) { - System.out.println("Connection faild"); - continue; - } catch (InterruptedException e) { - e.printStackTrace(); - } + void createSocket(String addr) { + // while (true) { + try { + Thread.sleep(1000); + socket = new Socket(addr, port); + os = new PrintStream(socket.getOutputStream()); + os.println(str); + os.close(); + socket.close(); + //break; + } catch (IOException e) { + System.out.println("Connection faild"); + //continue; + } catch (InterruptedException e) { + e.printStackTrace(); } + // } } }