public class DeviceListener extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
ANNOUNCEMENT_PORT
The port on which devices send keep-alive messages to report their presence on the network.
|
static int |
MAXIMUM_AGE
The number of milliseconds after which we will consider a device to have disappeared if
we have not received an announcement from it.
|
| Modifier and Type | Method and Description |
|---|---|
static List<DeviceAnnouncement> |
currentDevices()
Get the list of devices which currently can be seen on the network.
|
static boolean |
isActive()
Check whether we are presently listening for device announcements.
|
static void |
start()
Start listening for device announcements and keeping track of the DJ Link devices visible on the network.
|
static void |
stop()
Stop listening for device announcements.
|
public static final int ANNOUNCEMENT_PORT
public static final int MAXIMUM_AGE
public static boolean isActive()
public static void start()
throws SocketException
SocketException - if the socket to listen on port 50000 cannot be created.public static void stop()
public static List<DeviceAnnouncement> currentDevices()
Copyright © 2016. All rights reserved.