Server Rewrite!

Now that the ini­tial pro­to­type for the server is up and run­ning, I have decided to rewrite it in a more for­mal way. The pro­to­type was writ­ten in a very crude C-style C++ code. To be hon­est, I pre­fer the C style of cod­ing and would use C to write the server code. The prob­lem is that I have writ­ten a cus­tom object-oriented wrap­per around the ENet library in C++ and am forced to use C++.

In order to have a main­tain­able and mod­u­lar archi­tec­ture, I have decided to switch over to an object-oriented approach for the server as well. I cur­rently have the basic net­work­ing up and run­ning in a flex­i­ble design with a publish-subscribe archi­tec­ture for mes­sage handlers.

I am design­ing in a way so that the core of the server and client can be released as open source while allow­ing devel­op­ers to develop pro­pri­etary mes­sage han­dlers for var­i­ous fea­tures. Hope­fully I’ll have a sim­ple imple­men­ta­tion released within a week!

Leave a Reply