All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.pkts.packet.TransportPacket Maven / Gradle / Ivy

There is a newer version: 3.0.10
Show newest version
/**
 * 
 */
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();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy