<div dir="ltr"><span style="font-size:12.7272720336914px">Or you simply do an enet_host_flush(theHost) in your client app, which will force the connect event. The behaviour that you are seeking will be the same.</span><div><br></div><div>Pablo<br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Dec 15, 2014 at 5:51 AM, Laftur Jeremy <span dir="ltr"><<a href="mailto:laftur.jeremy@gmail.com" target="_blank">laftur.jeremy@gmail.com</a>></span> wrote:<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">I'm new to ENet, and I'm excited to use it in my projects. I made<br>
simple server and client programs to test it out and to make sure I<br>
understood how to use it.<br>
<br>
You may follow this link to view my server code:<br>
<br>
<a href="http://dpaste.com/2JW0DYE.txt" target="_blank">http://dpaste.com/2JW0DYE.txt</a><br>
<br>
... And the client code is here:<br>
<br>
<a href="http://dpaste.com/1CKC6DC.txt" target="_blank">http://dpaste.com/1CKC6DC.txt</a><br>
<br>
<br>
The client program appears to function as expected, but the server<br>
program isn't firing the connect event for some reason. After combing<br>
the documentation and tutorials for more time than I'd care to admit,<br>
I finally decided to try to send a packet from the client to see if<br>
that did anything.<br>
<br>
It turns out that the server program waits to fire the connect event<br>
until the client actually sends a packet over the new connection. You<br>
may observe this behavior by uncommenting the indicated lines in the<br>
client program source.<br>
<br>
I would first like to know if my example programs exhibit the same<br>
behavior for anyone else. If so, I would like to know if the behavior<br>
is intended, and if so, I would like to know the reason for that, and<br>
I would suggest that the documentation provide some advice on this, as<br>
it has confused me greatly. Thanks so much for any help anyone can<br>
provide. You're the gold of the Internet just for being available to<br>
help.<br>
_______________________________________________<br>
ENet-discuss mailing list<br>
<a href="mailto:ENet-discuss@cubik.org">ENet-discuss@cubik.org</a><br>
<a href="http://lists.cubik.org/mailman/listinfo/enet-discuss" target="_blank">http://lists.cubik.org/mailman/listinfo/enet-discuss</a></blockquote></div>
</div></div></div>