Mercurial > hg > Members > nobuyasu > tightVNCClient
changeset 97:19aff5293769
large update befor
author | one |
---|---|
date | Fri, 14 Oct 2011 17:16:20 +0900 |
parents | 3c4bebe9bf15 |
children | 1d1bb77d871b |
files | src/myVncClient/EchoClient.java |
diffstat | 1 files changed, 10 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/myVncClient/EchoClient.java Wed Oct 05 02:37:50 2011 +0900 +++ b/src/myVncClient/EchoClient.java Fri Oct 14 17:16:20 2011 +0900 @@ -17,6 +17,7 @@ // MyVncClient client; private InterfaceForViewer client; private int echoPort = 9999; + IpV6 ipV6; MyVncClient checkMove; VncViewer vncV; String responseLine; @@ -108,10 +109,11 @@ // サーバーにメッセージを送る if (echoSocket != null && os != null && is != null) { try { - + InetAddress addr = InetAddress.getLocalHost(); String add = new String(addr.getHostAddress()); - + //add = getIpV6(); + os.writeBytes(add + "\n"); os.writeBytes(args + "\n"); getProxyData(is); @@ -268,4 +270,10 @@ System.err.println("IOException: " + e); } } + + String getIpV6() { + ipV6 = new IpV6(); + ipV6.getInterface(); + return ipV6.getV6(); + } } \ No newline at end of file