> > > 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. :-)
_______________________________________________ ENet-discuss mailing list [email protected] http://lists.cubik.org/mailman/listinfo/enet-discuss
