Interface PcapProHandler.OfPacketConsumer

All Superinterfaces:
Consumer<com.slytechs.jnet.protocol.Packet>, 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.

@FunctionalInterface public static interface PcapProHandler.OfPacketConsumer extends PcapProHandler, Consumer<com.slytechs.jnet.protocol.Packet>
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
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    accept(com.slytechs.jnet.protocol.Packet packet)
    Accept a packet.

    Methods inherited from interface java.util.function.Consumer

    andThen
  • Method Details

    • accept

      void accept(com.slytechs.jnet.protocol.Packet packet)
      Accept a packet.
      Specified by:
      accept in interface Consumer<com.slytechs.jnet.protocol.Packet>
      Parameters:
      packet - packet data