Module com.slytechs.jnet.jnetpcap
Class PacketPlayerPreProcessor
java.lang.Object
com.slytechs.jnet.jnetpcap.internal.AbstractPcapDispatcher
com.slytechs.jnet.jnetpcap.internal.PacketPlayerPreProcessor
- All Implemented Interfaces:
AutoCloseable,org.jnetpcap.internal.PcapDispatcher,org.jnetpcap.PcapHandler,org.jnetpcap.PcapHandler.NativeCallback
public class PacketPlayerPreProcessor
extends AbstractPcapDispatcher
implements org.jnetpcap.internal.PcapDispatcher
PacketPlayerPreProcessor relies on preview features of the Java platform:
PacketPlayerPreProcessorrefers 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 PacketPlayerPreProcessor.
- 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
ConstructorsConstructorDescriptionPacketPlayerPreProcessor(org.jnetpcap.internal.PcapDispatcher pcapDispatcher, Object config, NetPcap.PcapProContext context) Instantiates a new packet player pre processor. -
Method Summary
Modifier and TypeMethodDescriptionintdispatchNative(int count, org.jnetpcap.PcapHandler.NativeCallback handler, MemorySegmentPREVIEW user) Dispatch native.Preserve ifg.Methods inherited from class com.slytechs.jnet.jnetpcap.internal.AbstractPcapDispatcher
captureLength, close, dispatchRaw, getUncaughtException, headerLength, interrupt, loopNative, 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, loopNative, loopRaw, next, nextEx, onNativeCallbackException, pcapHeaderABI, setUncaughtExceptionHandlerMethods inherited from interface org.jnetpcap.PcapHandler.NativeCallback
nativeCallback
-
Constructor Details
-
PacketPlayerPreProcessor
public PacketPlayerPreProcessor(org.jnetpcap.internal.PcapDispatcher pcapDispatcher, Object config, NetPcap.PcapProContext context) Instantiates a new packet player pre processor.- Parameters:
pcapDispatcher- the pcap dispatcherconfig- the configcontext- the context
-
-
Method Details
-
preserveIfg
Preserve ifg.- Returns:
- the packet player pre processor
-
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:
-
PacketPlayerPreProcessorwhen preview features are enabled.