Mercurial > hg > Database > Alice
diff src/alice/daemon/AliceDaemon.java @ 182:52a1fa5ba38b working
add filp api
author | e095732 |
---|---|
date | Tue, 26 Feb 2013 13:46:18 +0900 |
parents | d7816b9b72e9 |
children | d50cddf64396 |
line wrap: on
line diff
--- a/src/alice/daemon/AliceDaemon.java Fri Feb 08 19:03:52 2013 +0900 +++ b/src/alice/daemon/AliceDaemon.java Tue Feb 26 13:46:18 2013 +0900 @@ -2,6 +2,7 @@ import java.io.FileWriter; import java.io.IOException; +import java.net.InetAddress; import java.net.InetSocketAddress; import java.net.ServerSocket; import java.nio.channels.ServerSocketChannel; @@ -46,9 +47,9 @@ ServerSocket ss = ssChannel.socket(); ss.setReuseAddress(true); - InetSocketAddress a = new InetSocketAddress("::", conf.localPort); - System.out.println(a); - //ss.bind(new InetSocketAddress(InetAddress.getLocalHost(), conf.localPort)); + //InetSocketAddress a = new InetSocketAddress("::", conf.localPort); + InetSocketAddress a = new InetSocketAddress(InetAddress.getLocalHost(), conf.localPort); + //System.out.println(a); ss.bind(a); acceptThread = new AcceptThread(ss, "ACCEPT" + conf.localPort); acceptThread.start();