- 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
ByteBuffer
packet handler. This handler may receive packets
either by copy or scoped to a temporal existence.-
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
handleByteBuffer
(U user, PcapHeader header, ByteBuffer packet) Packet handler method.
-
Method Details
-
handleByteBuffer
Packet handler method. This method get called to handle or consume a pcap packet.- Parameters:
user
- the userheader
- the headerpacket
- the packet
-