diff src/wifibroadcast/WifiMulticastChannel.java @ 2:2a328333ba70

no compile errors
author one
date Sat, 28 Jul 2012 13:06:57 +0900
parents 649b8573372c
children 9c99e2193277
line wrap: on
line diff
--- a/src/wifibroadcast/WifiMulticastChannel.java	Sat Jul 28 12:24:04 2012 +0900
+++ b/src/wifibroadcast/WifiMulticastChannel.java	Sat Jul 28 13:06:57 2012 +0900
@@ -10,7 +10,7 @@
 import java.nio.ByteBuffer;
 import java.nio.channels.DatagramChannel;
 
-public class WifiMulticastChannel implements WifiReceiver,WifiSender {
+public class WifiMulticastChannel implements WifiReceiver {
 	private InetAddress mAddr;
 	private DatagramChannel dc;
 	private SocketAddress sAddr;
@@ -18,7 +18,7 @@
 	public WifiMulticastChannel(String mCASTADDR, int port) throws IOException {
 	     // join multicast group on this interface, and also use this
 	     // interface for outgoing multicast datagrams
-     	  NetworkInterface ni = NetworkInterface.getByName("en0");
+     	  NetworkInterface ni = NetworkInterface.getByName("en1");
 
 	     dc = DatagramChannel.open(StandardProtocolFamily.INET)
 	         .setOption(StandardSocketOptions.SO_REUSEADDR, true)