I have read the Enet tutorial http://enet.bespin.org/Tutorial.html and I can't it figure out.
In the section Creating an ENet server the server is created without specifying an IP adress, instead ENET_HOST_ANY is used. I assume this is because the server does not need to know its own address, only the port it needs to recieve from.
But, in the Creating an ENet client section, a NULL is passed instead of an address... I thought the client needed to know where to send its packets?
Another concept I don't get is the client->server pair, is this bi-directional or not? Do I need a server and a client on both ends of the connection?
My understanding of an network API is that a player connects to a host, so that the client application will need to create a client object only and then plug in an IP and Port and start sending and recieving packets with the server.
I would like to learn how to use Enet becuase I think using UDP packets in Quake3 style is a way to go for RPG and FPS games.
Does anyone here have full examples of client code and server code (C++) I can use to understand Enet?