- All Superinterfaces:
PcapHandler
- All Known Subinterfaces:
PcapDispatcher
- All Known Implementing Classes:
StandardPcapDispatcher
- 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.
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.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jnetpcap.PcapHandler
PcapHandler.NativeCallback, PcapHandler.OfArray<U>, PcapHandler.OfByteBuffer<U>, PcapHandler.OfMemorySegment<U> -
Method Summary
Modifier and TypeMethodDescriptionvoidnativeCallback(MemorySegment user, MemorySegment header, MemorySegment packet) Receive native packets.
-
Method Details
-
nativeCallback
Receive native packets.- Parameters:
user- user opaque dataheader- libpcap headerpacket- packet data
-