public interface TransportPacket extends Packet, Cloneable
| Modifier and Type | Method and Description |
|---|---|
TransportPacket |
clone() |
int |
getDestinationPort() |
int |
getHeaderLength() |
IPPacket |
getParentPacket()
Almost all packets have a parent, which is the encapsulating protocol.
|
int |
getSourcePort() |
boolean |
isSCTP() |
boolean |
isTCP() |
boolean |
isUDP() |
void |
setDestinationPort(int port) |
void |
setSourcePort(int port) |
getArrivalTime, getName, getNextPacket, getPacket, getPayload, getProtocol, hasProtocol, verify, write, writeint getSourcePort()
void setSourcePort(int port)
int getDestinationPort()
void setDestinationPort(int port)
boolean isUDP()
boolean isTCP()
boolean isSCTP()
int getHeaderLength()
TransportPacket clone()
IPPacket getParentPacket()
PacketSipPacket is typically a
TransportPacket such as UDPPacket or a TCPPacket.
The parent of a TransportPacket is usually a IPPacket and
so on.getParentPacket in interface PacketCopyright © 2021. All Rights Reserved.