> I'd like to try and make an uwsgi "config plugin" for the emperor, just
> to test my C skills. So I have several questions:
>
> 1. I must do it in C right?
C or C++
>
> 2. How do I use http in the uwsgi C context, is there an API I can use.
> Where to find examples.
You mean 'downloading things' via http ?
You can use
char *uwsgi_open_and_read(char *url, int *size, int add_zero, char
*magic_table[]) {
*size will contain the output of the response, add_zero (if > 0) will add
a null char at the end of the response. magic_table can be leaved NULL (it
contains the mapping between magic vars and their values)
>
> 3. How do I notify uwsgi of a new, changed or removed config file
> (actually it'll be a http url also)
>
I would connect to the http urls at every emperor scan, if their last
modification header changes i would trigger a reload, if it returns a 404
the instance could be removed.
--
Roberto De Ioris
http://unbit.it
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi