How can i count the number of send packets using send buffer

Nov 8, 2012 at 4:10 AM

i want to count the send packets in the middle of send buffer.

i know there is option to know how many packets the buffer contain but i looking the option to know how many packets the send buffer send "ongoing" on order to update my UI.

Coordinator
Nov 23, 2012 at 6:21 PM

Hi gshhar,

 

I think that in such cases you should either not use the send buffer and just send each packet separately or, if you're sending a lot of packets, use multiple send buffers sequentially and each send buffer only put N packets and then update your UI every time a send buffer finishes sending.

The Pcap.Net methods are based on WinPcap function that are, in general, not meant to keep a temporary readable state during the time they are being called and so there's no way to do that.

I hope this helps,

 

Boaz.