On Thu, Feb 10, 2011 at 7:04 AM, Lee Salzman <[email protected]> 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.
_______________________________________________ ENet-discuss mailing list [email protected] http://lists.cubik.org/mailman/listinfo/enet-discuss
