Module com.slytechs.jnet.jnetpcap
Package com.slytechs.jnet.jnetpcap
Interface PcapProHandler.OfPacket<U>
- Type Parameters:
U- the generic type
- All Superinterfaces:
org.jnetpcap.PcapHandler,PcapProHandler
- Enclosing interface:
PcapProHandler
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A dispatcher which dispatches high level packets with protocol header
information.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jnetpcap.PcapHandler
org.jnetpcap.PcapHandler.NativeCallback, org.jnetpcap.PcapHandler.OfArray<U>, org.jnetpcap.PcapHandler.OfByteBuffer<U>, org.jnetpcap.PcapHandler.OfMemorySegment<U>Nested classes/interfaces inherited from interface com.slytechs.jnet.jnetpcap.PcapProHandler
PcapProHandler.IpfHandler, PcapProHandler.OfPacket<U>, PcapProHandler.OfPacketConsumer -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PcapProHandler.OfPacket<?> Empty/No-op callback handler. -
Method Summary
Modifier and TypeMethodDescriptionstatic <U> PcapProHandler.OfPacket<U> empty()Empty/No-op callback handler.voidhandlePacket(U user, com.slytechs.jnet.protocol.Packet packet) Handle a packet.
-
Field Details
-
EMPTY
Empty/No-op callback handler.
-
-
Method Details
-
empty
Empty/No-op callback handler.- Type Parameters:
U- the generic type- Returns:
- the of packet
-
handlePacket
Handle a packet.- Parameters:
user- user opaque value returned backpacket- packet data
-