Original Post
i've decided to try out enet for my networking in a game im making. Now i have 2 questions or problems. 1. i cant seem to connect to the server i'm pretty much following the tutorials from here: http://enet.cubik.org/Tutorial.html ive got the server running in an infinite loop checking for connections:
while (1)
{
/* Wait up to 1000 milliseconds for an event. */
while (enet_host_service (stream.GetENetHost(), & event, 0) > 0)
{
// code here is exactly the same as in "Managing an ENet host" in the tut
}
}
client simply creates a host and attempts to connects as per the sample. The server and client are both running on the same machine for testing, the server listens on any nic on port 1234 as in the tut, while client connects to my IP with 1234 as the port. 2. does enet have some sort of ping measuring ability? i've seen reference to ping in the source code edit: okay solved number 2 - enet_peer_ping (ENetPeer *)