changeset 44:4287c9c076de

IPv6 any address
author kono
date Sun, 26 Oct 2008 22:19:52 +0900
parents 479c52c7de0b
children 9a9414141346
files src/fdl/FDLindaServ.java
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/fdl/FDLindaServ.java	Wed Aug 27 19:00:21 2008 +0900
+++ b/src/fdl/FDLindaServ.java	Sun Oct 26 22:19:52 2008 +0900
@@ -64,7 +64,8 @@
 		//ソケット・チャネルを生成・設定
 		ssChannel = SelectorProvider.provider().openServerSocketChannel();
 		// getAllByName で、すべて取って、その上のすべてでselectする必要がある。
-		InetSocketAddress address = new InetSocketAddress(InetAddress.getLocalHost(), port);
+		//InetSocketAddress address = new InetSocketAddress(InetAddress.getLocalHost(), port);
+		InetSocketAddress address = new InetSocketAddress("::", port);
 		ssChannel.socket().setReuseAddress(true);
 		ssChannel.socket().bind(address);
 		ssChannel.configureBlocking(false);