<br>2013/2/25 BS Flasher <span dir="ltr"><<a href="mailto:bsflasher@gmail.com" target="_blank">bsflasher@gmail.com</a>></span><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
How can I find how much reliable packets weren't sent?<br></blockquote><div><br>Hi,<br><br>I keep a pointer on every reliable packet I send (and I increment the refcount, of course).<br>Then
I poll the refcount of all those packets at the same time I service the
host: any packet with a refcount > 1 wasn't received. When refcount is back down to 1, it means I own the only
reference to it; therefore the packet has been received and acked. I can
then do what I want with that information before discarding it (such as
providing an ACKNOWLEDGED event during host service).<br><br></div></div>-- <br>Benoit.<br>