Functions f1() and f2() are executed on a timer in the same thread. If there is no packets on some channel, then next_packet() method will wait until the packet appears, although it may never appear. Is there any way I can make sure there is a potential packet to capture before executing next_packet() method? Or if there is no package, then after some time, break the execution of the next_packet() method?
Hello and thanks for your work!
I have a question about using a Sniffer. I use Sniffer like this:
Functions
f1()
andf2()
are executed on a timer in the same thread. If there is no packets on some channel, thennext_packet()
method will wait until the packet appears, although it may never appear. Is there any way I can make sure there is a potential packet to capture before executingnext_packet()
method? Or if there is no package, then after some time, break the execution of thenext_packet()
method?