Hello dreamincode!
I started playing around with ENet but got a problem. Most part of my code is from the http://enet.bespin.org/Tutorial.html tutorial. If I start the host and then the client, the client will tell me that I established a connection successfully but the host itself does not get any events or other signs of a successfull connection. Shouldn't the host get an ENET_EVENT_TYPE_CONNECT event aswell if a client connects? How can it be that the connection is successfull whithout the knowledge of the host?
Here's my code:
Client: http://pastebin.com/2ijhXsAN
Host: http://pastebin.com/MavvTd7Q
Every kind of help is appreciated.
Thanks a lot,
Cake
I started playing around with ENet but got a problem. Most part of my code is from the http://enet.bespin.org/Tutorial.html tutorial. If I start the host and then the client, the client will tell me that I established a connection successfully but the host itself does not get any events or other signs of a successfull connection. Shouldn't the host get an ENET_EVENT_TYPE_CONNECT event aswell if a client connects? How can it be that the connection is successfull whithout the knowledge of the host?
Here's my code:
Client: http://pastebin.com/2ijhXsAN
Host: http://pastebin.com/MavvTd7Q
Every kind of help is appreciated.
Thanks a lot,
Cake