OpenPoker Source As a Learning Tool
20 Jun
In a previous post I mentioned an article about using erlang to write multiplayer servers. The author of the article referes to an open source project he created called OpenPoker which he released under dual licenses – GPL, Commercial. Unfortunately, he later decided to stop supporting the GPL version of the project and removed all references to his source, but a simple google search for openpoker turns up the source code in the first few results as of this writing.
Besides being a good lesson in how nothing really every dissappears from the internet, I mention it because studying the source has given me a lot of insight on how to approach a multplayer server in erlang. I highly recommend checking it out, even if you don’t use a single line of code from it. At the very least it’s a great working example of how to implement gen_server.
Also here’s a good primer on gen_server.

Recent Comments