[ENet-discuss] Disconnection problem

Adam D. Moss adam at gimp.org
Wed Dec 22 10:30:46 PST 2004


Benoit Germain wrote:
> Imagine that I have a client that attempts to connect to an inexistent 
> server. The client's peer will enter CONNECTING state for some time. If 
> nothing is done, connection fails by timeout, a DISCONNECT event is 
> triggered, and the peer is reset.
> 
> Now, if the client calls enet_peer_disconnect(), a disconnection command 
> is issued toward the absent server, the peer is reset, but no 
> disconnection event is ever sent, since the peer can't remember that 
> anything ever happened.

I don't know if this is what's intended, but (if I understand
you right) ENet's behaviour is what I'd expect.  i.e. I wouldn't
expect to see a(nother) DISCONNECT event for a peer that wasn't
actually connected.

Regards,
--Adam
-- 
Adam D. Moss   . ,,^^   adam at gimp.org   http://www.foxbox.org/   co:3
"... so make sure your illness is early in the financial year."


More information about the ENet-discuss mailing list