Ask HN: Resources for multiplayer game server development
I've had great success on the client side so far. My language of choice for server and client is ruby. Qt has been kind to me, especially since this is the first non-trivial thick client app I've written.
On the server side I am somewhat at a loss. I need to handle multiple persistent connections with data being asynchronously transferred between the server and its various clients. I am spinning up a TCPServer which spins up a thread for each socket connection.
I am fairly certain that sockets are not thread-safe, and that some form of resource lock (such as a mutex) will be required around socket read/write operations. However, without any background in this kind of programming, I have no confidence that I am even reinventing the right wheel!
I do not want to use EventMachine or GServer because I don't understand what they do. My goal here is not "write a game", but "write a game and learn how some of the lower-level stuff works".
I've found some OK resources via Google, but I would love HN's recommendations for books, ebooks, websites, example implementations to study, bits of wisdom, and so forth.
Thank you!