On Sat, 01 Mar 2008, Qusai Al Shidi wrote: > Dear Lee or whomever, > > Can you please gimme a summary of how tpserver works? And what I > should keep in mind while making my SQL abstraction code? Thanks :).
There are a few little bit of documentation spread around about how tpserver-cpp works. To start with, there is a page that is very old with a UML diagram: http://www.thousandparsec.net/tp/dev/documents/tpserver-cpp/ Slightly more up to date is the ruleset-book in git and here: http://code.thousandparsec.net/~lee/ruleset-book.pdf Especially chapters 3 and 8. It needs a lot more work though. The wiki might yet gain more information about the design of tpserver-cpp. If it was to do so, it would be on, or linked from, http://www.thousandparsec.net/wiki/Tpserver-cpp You can of course ask me questions. The biggest issues to remember when working on persistence are: * Must save/update and restore correctly all state (sometimes bits can be skipped) * The structure of the data being store changes (mostly) slowly over time The second point is why tpmysql has a table of table version numbers so we know when we have to change the structure, add a table, or cut our losses and tell the admin (s)he has to delete the database and start again. > Qusai Al Shidi, > (AquaFox) Later Lee
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ tp-devel mailing list [email protected] http://www.thousandparsec.net/tp/mailman.php/listinfo/tp-devel
