public class QueuedUdpPacket
extends java.lang.Object
| Constructor and Description |
|---|
QueuedUdpPacket()
Construct an empty QueuedUdpPacket.
|
QueuedUdpPacket(java.net.DatagramPacket thePacket,
long theTime)
Construct a new QueuedUdpPacket.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getArrivalTime()
Retrieve the arrival time for the DatagramPacket contained within.
|
java.net.DatagramPacket |
getDatagramPacket()
Retrieve the DatagramPacket contained within this queued object.
|
void |
setArrivalTime(long theTime)
Store the arrival time of the associated DatagramPacket.
|
void |
setDatagramPacket(java.net.DatagramPacket thePacket)
Store the incoming DatagramPacket in the queued object.
|
public QueuedUdpPacket()
public QueuedUdpPacket(java.net.DatagramPacket thePacket,
long theTime)
thePacket - The DatagramPacket received by the transporttheTime - The arrival time (in milliseconds) of the packetpublic java.net.DatagramPacket getDatagramPacket()
public void setDatagramPacket(java.net.DatagramPacket thePacket)
thePacket - The DatagramPacket received by the transportpublic long getArrivalTime()
public void setArrivalTime(long theTime)
theTime - The arrival time of the associated DatagramPacket