[ENet-discuss] Data loss on disconnect?
Lee Salzman
lsalzman1 at cox.net
Tue Aug 2 13:51:26 PDT 2005
I had debated this and ultimately decided that disconnect should
override any pending requests, and other behaviors can easily be
emulated over it. You need to send a packet to the peer that marks the
end of any communication, which the peer should acknowledge after it's
processed all pending packets before it. After you receive the
acknowledgement, then you do your disconnect.
Lee
Brian Kearns wrote:
> I have noticed that if I send a reliable packet and then issue a
> disconnect, the client processes the disconnect request before passing
> the reliable data to the event system -- is this intentional? It seems
> illogical that data would be lost if a reliable packet is sent and then
> a graceful disconnect is issued. Since both events are sent reliably,
> shouldn't they be processed in order?
>
> Brian Kearns
More information about the ENet-discuss
mailing list