public class OutgoingUDPClientPacket
extends java.lang.Object
implements java.lang.Runnable
Modifier and Type | Field and Description |
---|---|
boolean |
fCancel |
ManualResetEvent |
fDone |
Constructor and Description |
---|
OutgoingUDPClientPacket(UDPConnector connector,
java.net.DatagramPacket data,
OutgoingUDPClientPacket previousPacket)
Constructs a new outgoing packet for an existing UDP Connector.
|
Modifier and Type | Method and Description |
---|---|
void |
Cancel()
Cancel this outgoing packet.
|
java.net.DatagramPacket |
getData()
Returns the DatagramPacket of this outgoing UDP packet.
|
OutgoingUDPClientPacket |
getPreviusPacket()
Returns the previus outgoing packet of the client.
|
void |
run() |
public ManualResetEvent fDone
public boolean fCancel
public OutgoingUDPClientPacket(UDPConnector connector, java.net.DatagramPacket data, OutgoingUDPClientPacket previousPacket)
UDPConnector
- is the UDPConnector where this message belongs to.data
- is the outgoing DatagramPacket.previousPacket
- is the previous outgoing packet of the UDPConnector.public void Cancel()
public void run()
run
in interface java.lang.Runnable
public java.net.DatagramPacket getData()
public OutgoingUDPClientPacket getPreviusPacket()