- All Superinterfaces:
AutoCloseable
,PcapHandler
,PcapHandler.NativeCallback
- All Known Implementing Classes:
StandardPcapDispatcher
The Interface PcapDispatcher.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jnetpcap.PcapHandler
PcapHandler.NativeCallback, PcapHandler.OfArray<U>, PcapHandler.OfByteBuffer<U>, PcapHandler.OfMemorySegment<U>
-
Method Summary
Modifier and TypeMethodDescriptionint
captureLength
(MemorySegment address) Capture length.void
close()
int
dispatchNative
(int count, PcapHandler.NativeCallback handler, MemorySegment user) Dispatch native.int
dispatchRaw
(int count, MemorySegment callbackFunc, MemorySegment userData) Dispatch raw.Gets the uncaught exception.int
headerLength
(MemorySegment address) Header length.void
Interrupt.int
loopNative
(int count, PcapHandler.NativeCallback handler, MemorySegment user) Loop native.int
loopRaw
(int count, MemorySegment callbackFunc, MemorySegment userData) Loop raw.next()
Next.nextEx()
Next ex.void
On native callback exception.Pcap header ABI.void
setUncaughtExceptionHandler
(Thread.UncaughtExceptionHandler exceptionHandler) Sets the uncaught exception handler.Methods inherited from interface org.jnetpcap.PcapHandler.NativeCallback
nativeCallback
-
Method Details
-
captureLength
Capture length.- Parameters:
address
- the address- Returns:
- the int
-
dispatchNative
Dispatch native.- Parameters:
count
- the counthandler
- the handleruser
- the user- Returns:
- the int
-
dispatchRaw
Dispatch raw.- Parameters:
count
- the countcallbackFunc
- the callback funcuserData
- the user data- Returns:
- the int
-
headerLength
Header length.- Parameters:
address
- the address- Returns:
- the int
-
loopNative
Loop native.- Parameters:
count
- the counthandler
- the handleruser
- the user- Returns:
- the int
-
loopRaw
Loop raw.- Parameters:
count
- the countcallbackFunc
- the callback funcuserData
- the user data- Returns:
- the int
-
getUncaughtException
RuntimeException getUncaughtException()Gets the uncaught exception.- Returns:
- the uncaught exception
-
setUncaughtExceptionHandler
Sets the uncaught exception handler.- Parameters:
exceptionHandler
- the new uncaught exception handler
-
close
void close()- Specified by:
close
in interfaceAutoCloseable
- See Also:
-
onNativeCallbackException
On native callback exception.- Parameters:
e
- the e
-
interrupt
void interrupt()Interrupt. -
pcapHeaderABI
-
nextEx
Next ex.- Returns:
- the pcap packet ref
- Throws:
PcapException
- the pcap exceptionTimeoutException
- the timeout exception
-
next
Next.- Returns:
- the pcap packet ref
- Throws:
PcapException
- the pcap exception
-