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

io.pkts.PacketHandler Maven / Gradle / Ivy

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

import io.pkts.packet.Packet;

import java.io.IOException;

/**
 * 
 * Whenever there is a new packet being read off of the stream, the registered
 * {@link PacketHandler} will be called.
 * 
 * @author [email protected]
 */
public interface PacketHandler {

    /**
     * Will be called by the {@link Pcap} class as soon as it detects a new
     * {@link Packet} in the pcap stream.
     * 
     * @param packet
     *            the new {@link Packet} as read off of the pcap stream.
     * @throws IOException
     */
    void nextPacket(Packet packet) throws IOException;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy