Open GoogleCodeExporter opened 9 years ago
As promised. I am working on the code base. I hope in next days the code will be
available on our svn :) At this moment I am working on config loading and I am
trying
to compile old classes. Everything compiles fine on Linux, altought I didn't
had time
to make tests under Windows. There shouldn't be any problems I think.
Look at the screen. BTW Every developer here should use a good profiler. I am
using
Valgrind. And you can see no mem leak found :) So sad it is available only on
Linux/MacOS but Im sure there is Windows substitute for it. It will be nice if
everyone make sure no memory leaks were made since last change just before
commiting.
About architecture. I decided to go with something like this:
main -> CApplication -> CGameServer
1. main initialises CApplication
2. CApplication gets command line parameters etc, and tests host for any error
then
spawns CGameServer instance.
3. CGameServer does rest.
I belive this could help us with better error handling. If CGameServer throws an
exception then CApplication could handle it and server will not be turned off.
I am doing some simple GUI framework and I plan to run it on separate thread
spawned
from CApplication. The base GUI framework will deliver some functions like
PutLog()
etc. So sky is the limit. At this moment it only supports printf :) On Windows
it
will be *insert_your_favorite_gui*, and under Linux it will be ncurses. I am not
planning any GUI for Linux version.
As ncurses does not like me you can't see it in the attached screen. :(
I have some notes about GameServer<->Client connection, and security but I will
describe more specification later.
How about some kind of XML-RCP ? Remote admin etc. I know many online servers
doing
this.
Sleepy, gotta write todo list and more informations and IDE setup later. Bye :)
Original comment by Drajwer@gmail.com
on 24 Nov 2009 at 10:13
Attachments:
Original issue reported on code.google.com by
Drajwer@gmail.com
on 22 Nov 2009 at 8:27