[ENet-discuss] enet 1.3.6 dll for .net

BS Flasher bsflasher at gmail.com
Tue Feb 26 23:15:16 PST 2013


>
>
> 3- What operation enet_host_service() do with refrenceCount ?
>>
>>
> When you enet_packet_create() a packet, its referenceCount is 0.
> It is then incremented by each call to enet_packet_send().
> Internally, when a peer knows that the packet was received, it decrements
> referenceCount.
> 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.
> But if you incremented the packet's referenceCount, then ENet won't make
> referenceCount go below the amount you added yourself.
> That's the behaviour I rely on, and it seems to work for me :-).
>
>

Thanks Benoit, it worked for me too. My day is shiny now ;-)

Thanks* James Bellinger. *Your C# code is so clear and simple. Thanks again
for this good project. :-)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cubik.org/pipermail/enet-discuss/attachments/20130227/e714c366/attachment.html>


More information about the ENet-discuss mailing list