Module org.jnetpcap
Package org.jnetpcap

Interface PcapHandler.OfByteBuffer<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.OfByteBuffer<U> extends PcapHandler
A safe ByteBuffer packet handler. This handler may receive packets either by copy or scoped to a temporal existence.
  • Method Details

    • handleByteBuffer

      void handleByteBuffer(U user, PcapHeader header, ByteBuffer 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