<br><br><div class="gmail_quote">2013/2/26 James Bellinger <span dir="ltr"><<a href="mailto:james@illusorystudios.com" target="_blank">james@illusorystudios.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

With either referenceCount or freeCallback, how are you differentiating disconnection from acknowledge?<br>
For example, enet_peer_disconnect (Peer.Disconnect) calls enet_peer_reset_queues.<br></blockquote><div><br>I don't. It happens that I haven't encountered a situation where I care though, so I didn't think about it :-). <br>

</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
As a general thought:<br>
<br>
I wonder if it'd be useful to have a 'delivered count' on the packet itself.<br>
<br>
What is the specific use both of you get from knowing if a packet has been delivered though?<br></blockquote><div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


I've not needed it myself, since if it's delivered, the protocol continues, and if it's not delivered, well,<br>
reliable delivery will eventually either deliver it or the remote party will disconnect, so I don't have<br>
to pay attention to this.<br>
<br></blockquote><div><br>I have a toy chat application where I can send data to several recipients. I use it to log the fact that all recipients did receive the text I sent. Nothing critical.<br><br><br> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


Benoit:<br>
<br>
I don't see ENet setting the packet freeCallback anywhere. I believe it's unrelated to the malloc/free.<br></blockquote><div><br>Yes you are right, I didn't check the code. Well then it means I can change my binding to use this instead of maintaining a list of packets for acknowledgment notification. (this packet callback didn't exist when I implemented this feature).<br>

 </div><br></div>-- <br>Benoit.<br>