Re: Lua Enet IPv6
Posted: Fri Jan 25, 2019 1:54 am
Okay, so I spent today cleaning up the server code. I put together a version for demonstration purposes, since I don't want to put my entire game's code out in plaintext. I was able to get a consistent response where when the client joins, it shows, when the client leaves (nicely or not), it gets dropped and removed.
I get a consistent response with one client making requests on the first server start and first client connect. However, it gets very inconsistent if I add one more client, drop connections, connect back before the server realizes the client is gone. I don't really understand what is going on.
Also, I would like to know if it is a good or bad idea to have every client connection handled on its own thread, because I am noticing the server responses don't really seem as fast I want, especially when multiple clients are connected.
Thanks!
I get a consistent response with one client making requests on the first server start and first client connect. However, it gets very inconsistent if I add one more client, drop connections, connect back before the server realizes the client is gone. I don't really understand what is going on.
Also, I would like to know if it is a good or bad idea to have every client connection handled on its own thread, because I am noticing the server responses don't really seem as fast I want, especially when multiple clients are connected.
Thanks!