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.

@FunctionalInterface public static interface PcapProHandler.OfPacket<U> extends PcapProHandler
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

    Fields
    Modifier and Type
    Field
    Description
    static final PcapProHandler.OfPacket<?>
    Empty/No-op callback handler.
  • Method Summary

    Modifier and Type
    Method
    Description
    Empty/No-op callback handler.
    void
    handlePacket(U user, com.slytechs.jnet.protocol.Packet packet)
    Handle a packet.
  • Field Details

  • Method Details

    • empty

      static <U> PcapProHandler.OfPacket<U> empty()
      Empty/No-op callback handler.
      Type Parameters:
      U - the generic type
      Returns:
      the of packet
    • handlePacket

      void handlePacket(U user, com.slytechs.jnet.protocol.Packet packet)
      Handle a packet.
      Parameters:
      user - user opaque value returned back
      packet - packet data