[ENet-discuss] ENet 1.3.1/1.2.3 released

Jay Sprenkle jsprenkle at gmail.com
Thu Feb 10 13:48:41 PST 2011


On Thu, Feb 10, 2011 at 7:04 AM, Lee Salzman <lsalzman at gmail.com> wrote:

> I haven't changed anything about how that worked in this version, but
> rather your usage of it was never safe in the first place. You can't really
> do that using peer->incomingDataTotal because it resets regularly and not in
> any way the user can predict. It is for internal purposes only, really.
> You're better off just counting the total amount of packet data you receive
> on the peer and just throwing on a per-packet fudge-factor to account for
> header sizes in some vague way.
>
>
After a little reflection I came to the same conclusion. I decided the
headers probably don't contribute a significant amount to the total so I
could just ignore them. I removed it and just keep a local total now.

Thanks for the help.

The new version seems to work just fine so far.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cubik.org/pipermail/enet-discuss/attachments/20110210/f4c089f0/attachment.html>


More information about the ENet-discuss mailing list