public class DeviceAnnouncement extends Object
VirtualCdj.getLatestStatusFor(DeviceAnnouncement) to find the current detailed status for that device,
as long as the Virtual CDJ is active.| Constructor and Description |
|---|
DeviceAnnouncement(DatagramPacket packet)
Constructor sets all the immutable interpreted fields based on the packet content.
|
| Modifier and Type | Method and Description |
|---|---|
InetAddress |
getAddress()
Get the address on which this device was seen.
|
byte[] |
getHardwareAddress()
Get the MAC address reported by the device.
|
String |
getName()
Get the name reported by the device.
|
int |
getNumber()
Get the player/device number reported by the device.
|
byte[] |
getPacketBytes()
Get the raw data bytes of the device announcement packet.
|
long |
getTimestamp()
Get the last time the device was heard from.
|
String |
toString() |
public DeviceAnnouncement(DatagramPacket packet)
packet - the device announcement packet that was receivedpublic InetAddress getAddress()
public long getTimestamp()
public String getName()
public int getNumber()
public byte[] getHardwareAddress()
public byte[] getPacketBytes()
Copyright © 2016 Deep Symmetry, LLC. All rights reserved.