Commit ab6e037a authored by Bjoern Konieczek's avatar Bjoern Konieczek
Browse files

Multicast IPv6

parent b00bf181
......@@ -99,7 +99,18 @@ public class BasicCoapSocketHandler implements CoapSocketHandler {
this.localPort = dgramChannel.socket().getLocalPort();
dgramChannel.configureBlocking(false);
dgramChannel.join( InetAddress.getByName("224.0.0.1"), NetworkAdapter );
try {
dgramChannel.join( InetAddress.getByName("224.0.1.187"), NetworkAdapter );
} catch(Exception e) {
System.err.println("Interface not configured for IPv4! Cannot join Multicast Group!");
}
try {
dgramChannel.join( InetAddress.getByName("ff02::fd"), NetworkAdapter );
dgramChannel.join( InetAddress.getByName("ff05::fd"), NetworkAdapter );
} catch(Exception e) {
System.err.println("Interface not configured for IPv6! Cannot join Multicast Group!");
}
workerThread = new WorkerThread();
workerThread.start();
......
......@@ -19,6 +19,7 @@ import java.util.Collection;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
public class TimeoutHashMap<K, V> extends HashMap<Object, Object> {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment