<div dir="ltr"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_quote"><div class="im"><br><div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

3- What operation enet_host_service() do with refrenceCount ?<br>
<br></blockquote></div><div><br>When you enet_packet_create() a packet, its referenceCount is 0.<br>It is then incremented by each call to enet_packet_send().<br>Internally, when a peer knows that the packet was received, it decrements referenceCount.<br>


If
 you do nothing else, ENet will enet_packet_destroy() any packet whose 
referenceCount reaches 0. You don't have to do anything, it is 
automatic.<br>But if you incremented the packet's referenceCount, then ENet won't make referenceCount go below the amount you added yourself.<br>That's the behaviour I rely on, and it seems to work for me :-).<br>


 
<br></div></div></blockquote></div><br>Thanks Benoit, it worked for me too. My day is shiny now ;-)<br><br>Thanks<i> James Bellinger. </i>Your C# code is so clear and simple. Thanks again for this good project. :-)<br></div>