Module com.slytechs.jnet.jnetpcap
Class PacketRepeaterPreProcessor
java.lang.Object
com.slytechs.jnet.jnetpcap.internal.AbstractPcapDispatcher
com.slytechs.jnet.jnetpcap.internal.PacketRepeaterPreProcessor
- All Implemented Interfaces:
AutoCloseable,org.jnetpcap.internal.PcapDispatcher,org.jnetpcap.PcapHandler,org.jnetpcap.PcapHandler.NativeCallback
public class PacketRepeaterPreProcessor
extends AbstractPcapDispatcher
implements org.jnetpcap.internal.PcapDispatcher
PacketRepeaterPreProcessor relies on preview features of the Java platform:
PacketRepeaterPreProcessorrefers to one or more preview APIs:MemorySegment.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
The Class PacketRepeaterPreProcessor.
- Author:
- Sly Technologies Inc, repos@slytechs.com
-
Nested Class Summary
Nested classes/interfaces inherited from class com.slytechs.jnet.jnetpcap.internal.AbstractPcapDispatcher
AbstractPcapDispatcher.PcapDispatcherFactoryNested 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> -
Constructor Summary
ConstructorsConstructorDescriptionPacketRepeaterPreProcessor(org.jnetpcap.internal.PcapDispatcher pcapDispatcher, Object config, NetPcap.PcapProContext context) Instantiates a new packet repeater pre processor. -
Method Summary
Modifier and TypeMethodDescriptionintdispatchNative(int count, org.jnetpcap.PcapHandler.NativeCallback handler, MemorySegmentPREVIEW user) Dispatch native.intloopNative(int count, org.jnetpcap.PcapHandler.NativeCallback handler, MemorySegmentPREVIEW user) Loop native.Methods inherited from class com.slytechs.jnet.jnetpcap.internal.AbstractPcapDispatcher
captureLength, close, dispatchRaw, getUncaughtException, headerLength, interrupt, loopRaw, nativeCallback, next, nextEx, onNativeCallbackException, pcapHeaderABI, setUncaughtExceptionHandlerMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jnetpcap.internal.PcapDispatcher
captureLength, close, dispatchRaw, getUncaughtException, headerLength, interrupt, loopRaw, next, nextEx, onNativeCallbackException, pcapHeaderABI, setUncaughtExceptionHandlerMethods inherited from interface org.jnetpcap.PcapHandler.NativeCallback
nativeCallback
-
Constructor Details
-
PacketRepeaterPreProcessor
public PacketRepeaterPreProcessor(org.jnetpcap.internal.PcapDispatcher pcapDispatcher, Object config, NetPcap.PcapProContext context) Instantiates a new packet repeater pre processor.- Parameters:
pcapDispatcher- the pcap dispatcherconfig- the configcontext- the context
-
-
Method Details
-
dispatchNative
public int dispatchNative(int count, org.jnetpcap.PcapHandler.NativeCallback handler, MemorySegmentPREVIEW user) Dispatch native.- Specified by:
dispatchNativein interfaceorg.jnetpcap.internal.PcapDispatcher- Overrides:
dispatchNativein classAbstractPcapDispatcher- Parameters:
count- the counthandler- the handleruser- the user- Returns:
- the int
- See Also:
-
loopNative
public int loopNative(int count, org.jnetpcap.PcapHandler.NativeCallback handler, MemorySegmentPREVIEW user) Loop native.- Specified by:
loopNativein interfaceorg.jnetpcap.internal.PcapDispatcher- Overrides:
loopNativein classAbstractPcapDispatcher- Parameters:
count- the counthandler- the handleruser- the user- Returns:
- the int
- See Also:
-
PacketRepeaterPreProcessorwhen preview features are enabled.