[ENet-discuss] Verifying no reliable packets left

Ruud van Gaal ruud at racer.nl
Wed May 6 05:22:06 PDT 2009


Hi,

I'm trying to use ENet to reliably send some game settings to a client
before I start the game. For example (pseudo-code):
send("car f1");
send("track zandvoort");

These are sent through a console ENet link, like script commands. However,
the command to start the game is sent on a separate UDP link (legacy
issues).
So my problem is that I need to determine that all reliable packets have
been sent to the server, and that they have all been received
(acknowledged).

Is there a function in ENet that will tell whether there are no reliable
packets yet to be acknowledged? That way, if I call this function and it
returns 0, I can assume that all setting packets have arrived at the client,
and I can start the game.

Thanks,
Ruud



More information about the ENet-discuss mailing list