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

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

There is a newer version: 3.0.10
Show newest version
/**
 * 
 */
package io.pkts.packet;

/**
 * @author [email protected]
 */
public interface PCapPacket extends Packet {

    /**
     * Get the total length of the data. Not all of that data may have been
     * captured in this one frame, which is evident if the actual captured
     * length is different from the total length
     * 
     * @return
     */
    long getTotalLength();

    /**
     * Get the actual length of what is contained in this frame. Note, if the
     * captured length is different from the total length then we have a
     * fragmented packet
     * 
     * @return the length in bytes
     */
    long getCapturedLength();

    @Override
    PCapPacket clone();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy