diff src/wifibroadcast/WifiBroadcastChannel.java @ 20:313dc81af36c

too late select mode
author one
date Tue, 31 Jul 2012 17:19:02 +0900
parents 7b43c3c60708
children
line wrap: on
line diff
--- 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);