I've been writing an application for a couple of weeks now and have dived into the server/client architecture, and after reading many examples and web-sites, I still have some outstanding questions regarding the initial flow and how to initialize everything.
I would like my application, when it starts, to start the server and a timer, that fires every 15 minutes with a request (to sync with a server). So far, I have implemented the server and understand the classes I can use for the timer, my question is how to start everything. I see three options.
1.) Put the main in the server, which in ConstructL() will start the CActive object MyTimer. My problem here is that I'm not sure if MyTimer should be a 'client' or a straight active object. Also, the server will wait for the timer to return before calling the active scheduler to start, yet my client implementations start the server if it isn't started.
2.) Put the main in the client, and always start the timer client, which starts the server.
3.) Put the main into a separate class which will start the server and the client.
Please help, as I've been staring at various website for days and can't really find a good implementation on how the client and server get started (minus the test apps, but I only want one e32main.)