<div>Hey guys!</div>
<div> </div>
<div>Here's what I'm attempting to do: I'm creating a new game with networking capabilities and I've chosen Enet for the net API. I'm currently implementing the very basics, connecting, disconnecting, etc.
</div>
<div>To test it I'm opening one client that listens on <a href="http://127.0.0.1">127.0.0.1</a> with port 50,000, and another client (simply a 2nd window) that listens on <a href="http://127.0.0.1">127.0.0.1</a> and port 50,001. The problem is that when the 2nd window
</div>
<div>tries to connect to the 1st one, I receive no CONNECTED event for the 2nd window. I use the tutorial code pretty much 1:1...</div>
<div> </div>
<div><font color="#0000ff" size="2">
<p>if</p></font><font size="2"> (enet_host_service (mHost, &event, 5000) > 0 && event.type == ENET_EVENT_TYPE_CONNECT)
<p>{</p>
<p>Ogre::LogManager::getSingleton().logMessage("Connected to the IP specified!");</p>
<p>}</p>
<p></p></font><font color="#0000ff" size="2">else</font><font size="2">
<p>{</p>
<p></p></font><font color="#008000" size="2">/* Either the 5 seconds are up or a disconnect event was */</font><font size="2">
<p></p></font><font color="#008000" size="2">/* received. Reset the peer in the event the 5 seconds */</font><font size="2">
<p></p></font><font color="#008000" size="2">/* had run out without any significant event. */</font><font size="2">
<p>enet_peer_reset (peer);</p>
<p>Ogre::LogManager::getSingleton().logMessage("Could not connect to the IP specified!");</p>
<p>}</p>
<p>Any ideas?</p></font></div>