Package jpcap

Interface PacketReceiver


public interface PacketReceiver
This interface is used to define a method to analyze the captured packets, which is used in JpcapCaptor.handlePacket() or JpcapCaptor.processPacket()
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Analyzes a packet.

    This method is called everytime a packet is captured.
  • Method Details

    • receivePacket

      void receivePacket(Packet p)
      Analyzes a packet.

      This method is called everytime a packet is captured.
      Parameters:
      p - A packet to be analyzed