mscdex/cap

Return read packets immediately on Windows 10

tonetechnician opened this issue · 2 comments

Hey there,

I'm using this package on both Windows 10 and MacOSx Mojave.

On Mojave, the module returns any received packets immediately, whilst on Windows I see there is a buffering of sorts taking place. This results in any delays in my application which I'm not wanting, I'd like to have each packet reflected immediately.

I've looked at the winpcap Packet.h file which includes the ``#define IMMEDIATE 1` flag. I believe this allows for the packets to be given immediately. Is there anyway something similar can be included in this module's Packet32.h. Adding the definition into there and rebuilding doesn't seem to work.

Any help would be greatly appreciated!

Are you using setMinBytes(0)?

Thanks so much for the quick response. I forgot to add this in. It fixed my problem :)