- 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.
A safe packet handler which receives copies of packets in a byte array.
-
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 TypeMethodDescriptionvoid
handleArray
(U user, PcapHeader header, byte[] packet) Packet handler method.
-
Method Details
-
handleArray
Packet handler method. This method get called to handle or consume a pcap packet.- Parameters:
user
- the userheader
- the headerpacket
- the packet
-