Project

General

Profile

Integration Lighttpd and my C++ application

Added by sbellus almost 13 years ago

I'm working on embedded application that is responsible for call processing.
I want to display information about calls (status, origin, destination,...) in web browser. Therefore I want to start lighttpd on same board as application is running (But that is other story). Once I will have lighttpd started, I have to access my application somewhat to provide lighttpd html page with information about calls. This information is dynamic. After google research I decide to use fastCGI.

Before I start to implement and research more deeply, I would appreciate if anybody can answer my questions or give me some hints.

  1. How many memory consumes lighttpd when no client is connected?
  2. Is it possible to start my application that will open socket for fastCGI in one of its threads and process requests from lighttpd in this thread?
    1. Cloud you please provide settings of lighttpd for such configuration
    2. Has anybody some example for this?

As you see I am newbee in web world. I'm looking forward to any hint, explanation.


Replies (2)

RE: Integration Lighttpd and my C++ application - Added by ver almost 13 years ago

i don't mean to heckle your plans, but since nobody else has responded...

if i were working on a project like this i would probably integrate a compact embeddable httpd rather than one intended to be standalone.

based on my experience with various implementations, i would probably use uhttpd (https://dev.openwrt.org/browser/trunk/package/uhttpd/), and replace/augment uhttpd-cgi.c with my own 'program'. i'll finish there since it's certainly off lighttpd topic.

ultimately i think you'd be fighting an uphill battle. i've never heard of lighttpd being successfully embedded (or even seriously attempted) so i would expect complications.

RE: Integration Lighttpd and my C++ application - Added by s.gleissner almost 13 years ago

i have ported lighty to an ARM9 platform (Atmel AT91SAM9260, 32 MB RAM, MMU available for memory management, only 16 bit wide, Linux), about three years ago, and it works very good.

1. I just have looked on one device, lighttpd currently needs about 2.6 MB
2. sure, thats what i do.
2.1. well, thats the normal fastcgi configuration. Create a thread, use the fastcgi library from fastcgi.com. It is not different compared with x86.
2.2. again, thats the normal fastcgi configuration. Of course, everything was built with a cross compiler, i think this is your biggest problem.

    (1-2/2)