public class IncomingUDPServerPacket
extends java.lang.Object
implements java.lang.Runnable
Constructor and Description |
---|
IncomingUDPServerPacket(UDPListener listener,
java.net.DatagramPacket packet,
IncomingUDPServerPacket previousPacket)
Constructs a new incoming UDP packet.
|
Modifier and Type | Method and Description |
---|---|
void |
Cancel()
Cancel this incoming packet.
|
java.net.DatagramPacket |
getData()
Returns the DatagramPacket of this incoming UDP packet.
|
IncomingUDPServerPacket |
getPreviusPacket()
Returns the previus incoming packet received by the server.
|
void |
run() |
public IncomingUDPServerPacket(UDPListener listener, java.net.DatagramPacket packet, IncomingUDPServerPacket previousPacket)
listener
- is the listener caught the message.packet
- is a Datagram packet.previousPacket
- is the previous incoming message of the listener.public void Cancel()
public void run()
run
in interface java.lang.Runnable
public java.net.DatagramPacket getData()
public IncomingUDPServerPacket getPreviusPacket()