<div dir="ltr">This gave me a stupid idea, that seems like an ideal solution...<div><br></div><div style>Technically with the freeCallback you can't distinguish between sent or dropped packets without some hackery. But there is a stupid simple way to support this...</div>
<div style><br></div><div style>I could just add something like ENET_PACKET_FLAG_SENT, which gets added onto the packet's flags when it's reference count drops to zero from the send queue.</div><div style><br></div>
<div style>This way you can just check in the freeCallback if it got sent or not by looking at the flags. This will be in git shortly. :)</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Feb 27, 2013 at 4:10 PM, Thorbjørn Lindeijer <span dir="ltr"><<a href="mailto:bjorn@lindeijer.nl" target="_blank">bjorn@lindeijer.nl</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Wed, Feb 27, 2013 at 2:50 PM, Syed Setia Pernama <<a href="mailto:syedhs@yahoo.com">syedhs@yahoo.com</a>> wrote:<br>

> Here is the thread:<br>
> <a href="http://lists.cubik.org/pipermail/enet-discuss/2012-May/thread.html#1888" target="_blank">http://lists.cubik.org/pipermail/enet-discuss/2012-May/thread.html#1888</a><br>
> And then answer (a bit hack):-<br>
> <a href="http://lists.cubik.org/pipermail/enet-discuss/2012-May/001887.html" target="_blank">http://lists.cubik.org/pipermail/enet-discuss/2012-May/001887.html</a><br>
<br>
</div>To avoid confusion, the answer about using freeCallback was actually over here:<br>
<br>
<a href="http://lists.cubik.org/pipermail/enet-discuss/2012-May/001888.html" target="_blank">http://lists.cubik.org/pipermail/enet-discuss/2012-May/001888.html</a><br>
<br>
Cheers,<br>
Bjørn<br>
<div class="HOEnZb"><div class="h5">_______________________________________________<br>
ENet-discuss mailing list<br>
<a href="mailto:ENet-discuss@cubik.org">ENet-discuss@cubik.org</a><br>
<a href="http://lists.cubik.org/mailman/listinfo/enet-discuss" target="_blank">http://lists.cubik.org/mailman/listinfo/enet-discuss</a><br>
</div></div></blockquote></div><br></div>