Module org.jnetpcap
Package org.jnetpcap

Interface PcapHandler.OfArray<U>

Type Parameters:
U - the generic user type
All Superinterfaces:
PcapHandler
Enclosing interface:
PcapHandler
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface PcapHandler.OfArray<U> extends PcapHandler
A safe packet handler which receives copies of packets in a byte array.
  • Method Details

    • handleArray

      void handleArray(U user, PcapHeader header, byte[] packet)
      Packet handler method. This method get called to handle or consume a pcap packet.
      Parameters:
      user - the user
      header - the header
      packet - the packet