[ENet-discuss] Disconnection problem

Benoit Germain bgermain at ubisoft.fr
Fri Dec 10 07:13:33 PST 2004


Hello,

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. Is this normal behaviour, or should a disconnected event be
generated in that case ? Or must the caller check for the peer's state and
expect a disconnected event only if the state is not DISCONNECTED ?

__________________________________
Benoit Germain
mailto:bgermain at ubisoft.fr <mailto:bgermain at ubisoft.fr> 

Person who says it cannot be done should not interrupt person doing it.
-- Chinese Proverb

People who think they're smart annoy those of us who are.
-- double-U's Proverb ?
__________________________________

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.puremagic.com/pipermail/enet-discuss/attachments/20041210/94efd3c4/attachment.html


More information about the ENet-discuss mailing list