public final class UdpPacketImpl extends TransportPacketImpl implements UDPPacket
| Constructor and Description |
|---|
UdpPacketImpl(IPPacket parent,
Buffer headers,
Buffer payload) |
| Modifier and Type | Method and Description |
|---|---|
TransportPacket |
clone() |
int |
getChecksum() |
int |
getHeaderLength() |
int |
getLength() |
boolean |
isUDP() |
void |
setLength(int length) |
void |
write(java.io.OutputStream out,
Buffer payload)
Writes this packet to the
OutputStream with the supplied payload. |
getArrivalTime, getDestinationPort, getNextPacket, getParentPacket, getSourcePort, isTCP, setDestinationPort, setSourcePort, verifycheckParent, getName, getPacket, getPayload, getProtocol, hasProtocol, writeequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetParentPacketgetDestinationPort, getSourcePort, isTCP, setDestinationPort, setSourcePortgetArrivalTime, getName, getNextPacket, getPacket, getPayload, getProtocol, hasProtocol, verify, writepublic boolean isUDP()
isUDP in interface TransportPacketisUDP in class TransportPacketImplpublic int getHeaderLength()
getHeaderLength in interface TransportPacketpublic int getLength()
public void setLength(int length)
public int getChecksum()
public TransportPacket clone()
clone in interface Packetclone in interface TransportPacketclone in class TransportPacketImplCopyright © 2018. All Rights Reserved.