# HG changeset patch # User one # Date 1343722742 -32400 # Node ID 313dc81af36c87206de5b26cc12baabcb84d1b29 # Parent bb2538b7eb8d8aeabbeda7b9ed4a9db87049629e too late select mode diff -r bb2538b7eb8d -r 313dc81af36c src/wifibroadcast/WifiBroadcastChannel.java --- a/src/wifibroadcast/WifiBroadcastChannel.java Tue Jul 31 17:02:46 2012 +0900 +++ b/src/wifibroadcast/WifiBroadcastChannel.java Tue Jul 31 17:19:02 2012 +0900 @@ -12,7 +12,6 @@ public WifiBroadcastChannel(int id, int port, SocketType sender) throws IOException { // join multicast group on this interface, and also use this // interface for outgoing multicast datagrams - selectMode = false; selector = SelectorProvider.provider().openSelector(); dc = SelectorProvider.provider().openDatagramChannel(StandardProtocolFamily.INET); dc.setOption(StandardSocketOptions.SO_REUSEADDR, true); diff -r bb2538b7eb8d -r 313dc81af36c src/wifibroadcast/WifiMulticastChannel.java --- a/src/wifibroadcast/WifiMulticastChannel.java Tue Jul 31 17:02:46 2012 +0900 +++ b/src/wifibroadcast/WifiMulticastChannel.java Tue Jul 31 17:19:02 2012 +0900 @@ -19,7 +19,7 @@ protected SocketAddress sAddr; // select on DatagramChannel does not work now protected Selector selector; - protected boolean selectMode = false; + protected boolean selectMode = true; public WifiMulticastChannel() {}