[ENet-discuss] No disconnect event when connection attempt times out
Lee Salzman
lsalzman1 at cox.net
Thu Jan 11 23:00:29 PST 2007
Behavior is partially intentional, in that a disconnect event should
never happen unless it was preceded by a connect event. The only
exception to that rule being if a connection on the issuing side failed.
Oh well, I fixed it in CVS.
Lee
Ulrich Haller wrote:
> 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
> _______________________________________________
> ENet-discuss mailing list
> ENet-discuss at cubik.org
> http://lists.cubik.org/mailman/listinfo/enet-discuss
>
More information about the ENet-discuss
mailing list