public class DeviceAnnouncement extends Object
| Constructor and Description |
|---|
DeviceAnnouncement(DatagramPacket packet)
Constructor simply sets all the immutable fields.
|
| Modifier and Type | Method and Description |
|---|---|
InetAddress |
getAddress()
Get the address on which this device was seen.
|
byte[] |
getHardwareAddress()
The MAC address reported by the device.
|
String |
getName()
The name reported by the device.
|
int |
getNumber()
The player/device number reported by the device.
|
byte[] |
getPacketBytes()
The raw data bytes of the device announcement packet.
|
long |
getTimestamp()
The last time the device was heard from.
|
String |
toString() |
public DeviceAnnouncement(DatagramPacket packet)
packet - the device anouncement packet that was received.public InetAddress getAddress()
public long getTimestamp()
public String getName()
public int getNumber()
public byte[] getHardwareAddress()
public byte[] getPacketBytes()
Copyright © 2016. All rights reserved.