- 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 TypeMethodDescriptionintcaptureLength(MemorySegment address) Capture length.voidclose()intdispatchNative(int count, PcapHandler.NativeCallback handler, MemorySegment user) Dispatch native.intdispatchRaw(int count, MemorySegment callbackFunc, MemorySegment userData) Dispatch raw.Gets the uncaught exception.intheaderLength(MemorySegment address) Header length.voidInterrupt.intloopNative(int count, PcapHandler.NativeCallback handler, MemorySegment user) Loop native.intloopRaw(int count, MemorySegment callbackFunc, MemorySegment userData) Loop raw.next()Next.nextEx()Next ex.voidOn native callback exception.Pcap header ABI.voidsetUncaughtExceptionHandler(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:
closein 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
-