As I need to write a new server implementation, I have looked
at the existing servers.

As far as I understand it, fcgi/* and http/* both implement the class
WServer and the function WRun(), and are placed in different
libraries: libwtfcgi and libwthttp, only one of which can be linked
into the application.

I suggest making WServer an abstract base class and adding concrete
classes like FcgiServer and HttpServer. This would not change any
existing code outside the server directories, but would make the
code more obvious.

Later on, with this implementation, adding factories and a
factory-lookup function would make it possible to choose server type
at run time.

I would be happy to have a stab at implementing this, if I knew that
the changes, if successful, will be accepted.

Regards
/Lars Hamrén

------------------------------------------------------------------------------
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to