C
Chicken McNuggets
Hi,
I'm working on a C++ web framework as a hobby project and am looking for
some advice on the best way to design it.
Currently my plan is the following:
* Create a Unix daemon which loads a set of configuration files which
specify the location of a group of shared libraries (and other settings).
* The daemon then forks enough processes so each configuration file is
associated with a single process.
* Each process then loads its dynamic library using dlopen().
* Once the dynamic library has been loaded a pre-determined entry point
is called in each dynamic library which returns the required information
to the main daemon.
* The daemon then uses that information to start using the dynamic
library to execute the client supplied code.
Does that sound like a decent idea of how to go about creating a C++
framework or can anyone provide some hints or tips for the best method
to use in this case?
I'm working on a C++ web framework as a hobby project and am looking for
some advice on the best way to design it.
Currently my plan is the following:
* Create a Unix daemon which loads a set of configuration files which
specify the location of a group of shared libraries (and other settings).
* The daemon then forks enough processes so each configuration file is
associated with a single process.
* Each process then loads its dynamic library using dlopen().
* Once the dynamic library has been loaded a pre-determined entry point
is called in each dynamic library which returns the required information
to the main daemon.
* The daemon then uses that information to start using the dynamic
library to execute the client supplied code.
Does that sound like a decent idea of how to go about creating a C++
framework or can anyone provide some hints or tips for the best method
to use in this case?