zpl-c / enet

⚡️ ENet reliable UDP networking library
https://blog.zpl.pw
MIT License
650 stars 62 forks source link

Simple example using raw UDP sockets doesn't work #42

Open tuket opened 1 year ago

tuket commented 1 year ago

I made a fork of this demo application that shows how to scan peers in a LAN. The demo uses the original ENet.

In my fork I have added a CMake option to switch between original ENet and ZPL's ENet. With the original ENet it works, but with ZPL's ENet it fails with the error:

Failed to bind listen socket
SorpoBlock commented 3 weeks ago

I've gotten this error as well, it throwns winsock error 10049 after the call to bind in enet_socket_bind. Edit: It works fine with lsalzman/enet version 1.3.18