Module com.slytechs.jnet.jnetpcap
Class PacketDelayPreProcessor
java.lang.Object
com.slytechs.jnet.jnetpcap.internal.AbstractPcapDispatcher
com.slytechs.jnet.jnetpcap.internal.PacketDelayPreProcessor
- All Implemented Interfaces:
AutoCloseable,org.jnetpcap.internal.PcapDispatcher,org.jnetpcap.PcapHandler,org.jnetpcap.PcapHandler.NativeCallback
public class PacketDelayPreProcessor
extends AbstractPcapDispatcher
implements org.jnetpcap.internal.PcapDispatcher
PacketDelayPreProcessor relies on preview features of the Java platform:
PacketDelayPreProcessorrefers 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 PacketDelayPreProcessor.
- 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
ConstructorsConstructorDescriptionPacketDelayPreProcessor(org.jnetpcap.internal.PcapDispatcher pcapDispatcher, Object config, NetPcap.PcapProContext context) Instantiates a new packet delay 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
-
PacketDelayPreProcessor
public PacketDelayPreProcessor(org.jnetpcap.internal.PcapDispatcher pcapDispatcher, Object config, NetPcap.PcapProContext context) Instantiates a new packet delay 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:
-
PacketDelayPreProcessorwhen preview features are enabled.