Uses of Class
com.slytechs.sdk.jnetpcap.api.BaseNetPcap
-
Uses of BaseNetPcap in com.slytechs.sdk.jnetpcap.api
Subclasses of BaseNetPcap in com.slytechs.sdk.jnetpcap.apiModifier and TypeClassDescriptionfinal classHigh-level packet capture and protocol dissection API.Methods in com.slytechs.sdk.jnetpcap.api that return BaseNetPcapModifier and TypeMethodDescriptionPrints error message to stderr.BaseNetPcap.setBufferSize(int bufferSize) Sets the kernel buffer size for the capture.BaseNetPcap.setDatalink(int dlt) Sets the data link type for the capture.BaseNetPcap.setDatalink(com.slytechs.sdk.jnetpcap.constant.PcapDlt dlt) Sets the data link type.BaseNetPcap.setDatalink(Optional<com.slytechs.sdk.jnetpcap.constant.PcapDlt> dlt) Sets the data link type using an Optional.BaseNetPcap.setDirection(int dir) Sets the capture direction.BaseNetPcap.setDirection(com.slytechs.sdk.jnetpcap.constant.PcapDirection dir) Sets the capture direction.BaseNetPcap.setDirection(Optional<com.slytechs.sdk.jnetpcap.constant.PcapDirection> dir) Sets the capture direction using an Optional.BaseNetPcap.setFilter(com.slytechs.sdk.jnetpcap.BpFilter bpfProgram) Sets the BPF filter program.Sets the BPF filter using an Optional.BaseNetPcap.setImmediateMode(boolean enable) Enables or disables immediate mode.BaseNetPcap.setNonBlock(boolean nonBlock) Enables or disables non-blocking mode.BaseNetPcap.setPromisc(boolean promiscuousMode) Enables or disables promiscuous mode.BaseNetPcap.setRfmon(boolean rfMonitor) Enables or disables monitor mode (wireless).BaseNetPcap.setSnaplen(int snaplen) Sets the snapshot length.BaseNetPcap.setTimeout(int timeoutInMillis) Sets the read timeout in milliseconds.BaseNetPcap.setTstampPrecision(com.slytechs.sdk.jnetpcap.constant.PcapTStampPrecision precision) Sets the timestamp precision.BaseNetPcap.setTstampType(com.slytechs.sdk.jnetpcap.constant.PcapTstampType type) Sets the timestamp type.BaseNetPcap.setUncaughtExceptionHandler(Thread.UncaughtExceptionHandler exceptionHandler) Sets the uncaught exception handler.BaseNetPcap.setUncaughtExceptionHandler(Consumer<? super Throwable> exceptionHandler) Sets the uncaught exception handler using a Consumer.