Module org.jnetpcap
Package org.jnetpcap

Interface PcapHandler.NativeCallback

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.NativeCallback extends PcapHandler
NativeCallback relies on preview features of the Java platform:
  • NativeCallback refers to one or more preview APIs: MemorySegment.
Programs can only use NativeCallback when preview features are enabled.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
A native pcap callback which is called with packets captured using the Pcap.loop(int, org.jnetpcap.PcapDumper) or Pcap.dispatch(int, org.jnetpcap.PcapDumper) calls.