[ENet-discuss] sent reliable packet
BS Flasher
bsflasher at gmail.com
Mon Feb 25 10:49:05 PST 2013
Thanks Benoit. I will try your solution. I read that from ENet-discuss
online archive because didn't receive anything from this mailing list in my
gmail !!!
On Mon, Feb 25, 2013 at 5:58 PM, BS Flasher <bsflasher at gmail.com> wrote:
> Hi,
> Thanks for quick answer but I don't understand your mean of refcount !
> Can you please send some code about your solution?
> Also, is there another way to check acknowledgement of every packet?
>
> On 2/25/13, Benoit Germain <bnt.germain at gmail.com> wrote:
> > 2013/2/25 BS Flasher <bsflasher at gmail.com>
> >
> >> Hi,
> >> How can I find how much reliable packets weren't sent?
> >>
> >
> > Hi,
> >
> > I keep a pointer on every reliable packet I send (and I increment the
> > refcount, of course).
> > Then I poll the refcount of all those packets at the same time I service
> > the host: any packet with a refcount > 1 wasn't received. When refcount
> is
> > back down to 1, it means I own the only reference to it; therefore the
> > packet has been received and acked. I can then do what I want with that
> > information before discarding it (such as providing an ACKNOWLEDGED event
> > during host service).
> >
> > --
> > Benoit.
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cubik.org/pipermail/enet-discuss/attachments/20130225/125dd1d4/attachment.html>
More information about the ENet-discuss
mailing list