public class BroadcastDiscovery
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.net.InetSocketAddress |
address |
private static java.net.InetAddress |
group |
private static long |
MAGIC |
private static int |
PORT |
private java.lang.Thread |
receiveThread |
private java.lang.Thread |
sendThread |
private java.net.MulticastSocket |
socket |
private boolean |
stopped |
private java.util.UUID |
uid |
Constructor and Description |
---|
BroadcastDiscovery(java.util.UUID uid,
java.net.InetSocketAddress address) |
Modifier and Type | Method and Description |
---|---|
protected void |
onDiscovery(java.util.UUID uuid,
java.net.SocketAddress address) |
void |
start() |
void |
stop() |
private static java.net.InetAddress group
private static final int PORT
private static final long MAGIC
private final java.util.UUID uid
private final java.net.InetSocketAddress address
private java.lang.Thread sendThread
private java.lang.Thread receiveThread
private volatile boolean stopped
private java.net.MulticastSocket socket