On 10/24/2015 08:12 PM, Daniel Nicoletti wrote: > In cutelyst the plugin part is in uwsgiEngine directory > https://github.com/cutelyst/cutelyst/tree/master/uwsgiEngine Thanks, found it ... nice work. > There in plugin.cpp > https://github.com/cutelyst/cutelyst/blob/master/uwsgiEngine/plugin.cpp#L339 > you have the hooks, which uWSIG will call. > Depending on your usage you won't want a custom event loop (which > is needed so that Qt classes work properly, Qt can integrate with any > event loop but that would be more work), > so not all hooks are needed. These could be nice to document, and put into some kind of C++ context. At the moment I only need to request part, but both auth and config elements could be really interesting. > On the C++ plugin the hooks where defined with named syntax .name = > "cplusplus", > this isn't valid C++ code so you either have to put into a .c file > file or use the way I did in > plugin.cpp, which is better if you happened to share a config structure and > not > want to get unaligned warnings on 64bits. Cool, I will play with it a bit to make a simple and C++'ish API.
Could be fun to make it as a pure C++ standalone project, to make new ones easy to start up from this. Anyway, thanks for valuable input ... /BL > > Best, > _______________________________________________ uWSGI mailing list [email protected] http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
