Join GitHub today
Npcap: feature request: select function #993
Hello all, @hsluoyz
Just asking if the famous
We would definatly need it in our program: I tried to emulate its behavior by using a
I guess that by using something like
Would be really great to have it ! (and btw a great reason for switching to npcap)
Thanks a lot in advance !
Hi @gpotter2 ,
The Windows alternative for
For instance, I tried using (in python)
This always return WAIT_TIMEOUT (=0x00000102). Same using WaitForSingleObject (implementation is a bit different). Using INFINITE (=0xFFFFFFFF) never returns.
The question is why.
It seems that if one do two WaitFor... calls at the same time, this kind of bug can appear...
I think https://github.com/nmap/npcap/blob/2337a918ff9299526968842c58fe2afbb9c46db5/packetWin7/Dll/Packet32.cpp#L3145 or similar, could be the reason of this :/
I also discovered that the previous example works if the buffer has many packets in it.
Could you try to show me a working example of what the doc says: