Mercurial > hg > Members > riono > TreeVNC_ja_comment
comparison src/main/java/jp/ac/u_ryukyu/treevnc/TreeRootFinderListener.java @ 435:4ac83ab4be81
find our screen on fitScreen
remove requestSingleScreenSize
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 12 Jun 2016 09:06:53 +0900 |
parents | aad75cd6d9e2 |
children | 9db8862ef200 |
comparison
equal
deleted
inserted
replaced
434:aad75cd6d9e2 | 435:4ac83ab4be81 |
---|---|
97 } | 97 } |
98 | 98 |
99 public boolean isStopFlag() { | 99 public boolean isStopFlag() { |
100 return stopFlag; | 100 return stopFlag; |
101 } | 101 } |
102 | |
103 /** | |
104 * getLocalHost() returns hostname's address. It may not connectable, but | |
105 * it gives readable hostname. Do not use it to connect. | |
106 * @return | |
107 */ | |
108 String getMyAddress () { | |
109 InetAddress addr = null; | |
110 try { | |
111 addr = InetAddress.getLocalHost(); | |
112 } catch (UnknownHostException e) { | |
113 return "localhost"; | |
114 } | |
115 return addr.getHostAddress(); | |
116 } | |
117 } | 102 } |