Why are there two networking libraries in Love?
Posted: Mon Aug 15, 2022 4:14 pm
I see ENet and LuaSocket. It's not super clear which one is supported or recommended.
The documentation for networking (when I google it) comes up with (luasocket): https://love2d.org/wiki/Tutorial:Networking_with_UDP
Although the side-bar in the documentation clearly lists both luasocket and enet.
For luasocket I am seeing notes like: "When using blocking operations (network connect/read/write, or socket.sleep), the whole LÖVE main loop will be blocked, and it is usually a bad idea. So use only non-blocking operations if possible, or use it in a thread."
Is there a distinction here between enet and luasocket? Is luasocket the right choice because it supports non-blocking operations?
The documentation for networking (when I google it) comes up with (luasocket): https://love2d.org/wiki/Tutorial:Networking_with_UDP
Although the side-bar in the documentation clearly lists both luasocket and enet.
For luasocket I am seeing notes like: "When using blocking operations (network connect/read/write, or socket.sleep), the whole LÖVE main loop will be blocked, and it is usually a bad idea. So use only non-blocking operations if possible, or use it in a thread."
Is there a distinction here between enet and luasocket? Is luasocket the right choice because it supports non-blocking operations?