[ENet-discuss] Re: ENET Client getting backed up with Reliable Packets

lsalzman at telerama.com lsalzman at telerama.com
Fri Jun 25 11:43:10 PDT 2004

The first thing to know is that disconnection requests are effectively
asynchronous. The moment a disconnection request is requested/received, all
send/receive queues for packets are cleared. In other words, disconnection
preempts all delivery and receipt of packets. This is what you are noticing. :)

Basically, the only way to ensure all your stuff gets delivered is to do the
following: make the server send an acknowledgement packet that it has received
all the data. Make the client wait for this before it disconnects. If the client
receives it, you know you can safely disconnect.

Hope that helps.


More information about the ENet-discuss mailing list