[ENet-discuss] No disconnect event when connection attempt times out
Ulrich Haller
enet-discuss at servechilled.de
Thu Jan 11 21:15:03 PST 2007
Hello,
I noticed that the current CVS version does not generate a disconnect
event when the connect attempt times out (ie host is
down/unreachable). This used to work in the past.
enet_protocol_notify_disconnect explicitly tests if the connection
succeeded before generating the event. This does contradict the
tutorial and documentation, additionally there seems to be no way now
to catch that error without polling the peer status.
Was that change in behaviour intentional? I can't really see the
reason for that peer->state < ENET_PEER_STATE_CONNECTION_SUCCEEDED
clause.
All the best
Ulrich
More information about the ENet-discuss
mailing list