[ENet-discuss] Cannot connect to 127.0.0.1
Assaf Muller
assafmuller at gmail.com
Wed Apr 4 03:34:23 PDT 2007
Hey guys!
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.
To test it I'm opening one client that listens on 127.0.0.1 with port
50,000, and another client (simply a 2nd window) that listens on
127.0.0.1and port 50,001. The problem is that when the 2nd window
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...
if (enet_host_service (mHost, &event, 5000) > 0 && event.type ==
ENET_EVENT_TYPE_CONNECT)
{
Ogre::LogManager::getSingleton().logMessage("Connected to the IP
specified!");
}
else
{
/* Either the 5 seconds are up or a disconnect event was */
/* received. Reset the peer in the event the 5 seconds */
/* had run out without any significant event. */
enet_peer_reset (peer);
Ogre::LogManager::getSingleton().logMessage("Could not connect to the IP
specified!");
}
Any ideas?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.cubik.org/pipermail/enet-discuss/attachments/20070404/6118e30f/attachment.htm
More information about the ENet-discuss
mailing list