Welcome! Log In Create A New Profile

Advanced

Re: How to use C as a scripting language?

December 03, 2011 09:14AM
> On Saturday 03 December 2011 16:44:56 etrader wrote:
>> Thanks James!
>> The idea of building a mini-webserver for C programming is brilliant. I
>> searched a lot to find a guidance for building very basic web server in
>> C (obviously I prefer to write the web server in C with native API for C
>> files); but I was unable to find. All web servers in C are advanced
>> applications such as nginx. Could you please give me a hint how to start
>> to write a mini web server in C.
>>
>
> Instead of building a web server, you can consider to write a fastcgi
> or scgi application.
>
> http://www.fastcgi.com/devkit/doc/fastcgi-prog-guide/ap_guide.htm
>
> wbr, Valentin V. Bartenev
>
>

Another solution would be writing uWSGI plugins:

http://projects.unbit.it/uwsgi/browser/plugins/example/example_plugin.c

You will end with items passed by nginx to your app easy accessible and
you will not need to learn how to program a server/daemon
and focus on your app.

In addition to this your app will be accessibile via uwsgi/http/fastcgi
and can use the whole uwsgi api and operational modes
(preforked/threaded/async/green).

The doc on writing plugins is not available, but you can subscribe to the
uWSGI list and ask for help (or read the sources of the other plugins).


--
Roberto De Ioris
http://unbit.it

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

How to use C as a scripting language?

etrader December 03, 2011 02:38AM

Re: How to use C as a scripting language?

António P. P. Almeida December 03, 2011 03:52AM

Re: How to use C as a scripting language?

James Fidell December 03, 2011 05:32AM

Re: How to use C as a scripting language?

etrader December 03, 2011 07:44AM

Re: How to use C as a scripting language?

James Fidell December 03, 2011 08:14AM

Re: How to use C as a scripting language?

Oleksandr V. Typlyns'kyi December 03, 2011 08:32AM

Re: How to use C as a scripting language?

Valentin V. Bartenev December 03, 2011 08:34AM

Re: How to use C as a scripting language?

roberto December 03, 2011 09:14AM

Re: How to use C as a scripting language?

Brian Akins December 03, 2011 09:58AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 81
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready