<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2658.2">
<TITLE>Disconnection problem</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2 FACE="Lucida Console">Hello,</FONT>
</P>

<P><FONT SIZE=2 FACE="Lucida Console">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.</FONT></P>

<P><FONT SIZE=2 FACE="Lucida Console">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 ?</FONT></P>

<P><FONT COLOR="#800000" SIZE=2 FACE="Lucida Console">__________________________________</FONT>
<BR><FONT COLOR="#800000" SIZE=2 FACE="Lucida Console">Benoit Germain</FONT>
<BR><A HREF="mailto:bgermain@ubisoft.fr"><U></U><U><FONT COLOR="#0000FF" SIZE=2 FACE="Lucida Console">mailto:bgermain@ubisoft.fr</FONT></U></A>
</P>

<P><FONT COLOR="#660000" SIZE=2 FACE="Lucida Console">Person who says it cannot be done should not interrupt person doing it.</FONT>
<BR><FONT COLOR="#660000" SIZE=2 FACE="Lucida Console">-- Chinese Proverb</FONT>
</P>

<P><FONT COLOR="#800000" SIZE=2 FACE="Lucida Console">People who think they're smart annoy those of us who are.</FONT>
<BR><FONT COLOR="#800000" SIZE=2 FACE="Lucida Console">-- double-U's Proverb ?</FONT>
<BR><FONT COLOR="#800000" SIZE=2 FACE="Lucida Console">__________________________________</FONT>
</P>

</BODY>
</HTML>