io.pkts.packet.TransportPacket Maven / Gradle / Ivy
/**
*
*/
package io.pkts.packet;
/**
* Represents a Transport packet (Layer 4 in the OSI)
*
* @author [email protected]
*
*/
public interface TransportPacket extends Packet, Cloneable {
int getSourcePort();
void setSourcePort(int port);
int getDestinationPort();
void setDestinationPort(int port);
boolean isUDP();
boolean isTCP();
int getHeaderLength();
TransportPacket clone();
@Override
IPPacket getParentPacket();
}