Re: [uCsimm] Boa and cgi?

From: Gregory P. Riddick (gr3k@cms.mail.virginia.edu)
Date: Fri May 05 2000 - 22:26:39 EDT


On Fri, 5 May 2000 16:38:44 -0700 Larry Doolittle
<ldoolitt@recycle.lbl.gov> wrote:
> Gregory -
>
> > I'm new to linux programming. Someone on this list had
> > talked about using the Boa web server with cgi to monitor
> > the serial port and post data with the "get request" from a
> > browser. I need to do streaming data from a serial port
> > and send out the data at about 20kb/sec(the clients are
> > java programs running in web browsers) .
>
> I'm not sure I understand this requirement right. If you
> actually need to fan out a data stream, and arbitrarily
> let clients turn on and off, you might have some work
> ahead of you. Does the stream consist of blocks, and
> you want to start at block boundaries?
>

The data stream is actually coming in real-time over the
serial port and I'd like to send it out with at most a 5-10
second delay. The data could be segmented into 1-5 second
blocks and the individual clients could start on a block
boundry, that would be OK.

> > I also need to
> > ability to handle multiple clients simultaneously. Could I
> > do this using Boa and cgi?
>
> You should have no problem.
>
> Boa-0.92 is what people normally use on uCLinux, it's smaller
> than Boa-0.94. Someone even hacked the config file parser
> out of Boa-0.92, to trim the size even more. I don't know where
> to find that. You will find comments on the list archive about
> building stock boa-0.92 with somewhat larger than default stack
> size, then it apparently runs fine.
>
> I recommend using the "nph-style" interface, where you have
> a little more control over the flow. In boa-0.92, it doesn't
> actually matter much, since true header parsing is not implemented.
>
> > Or do I need to write something
> > custom, maybe a hack based on the Boa code?
>
> CGI will probably work fine for you. Boa-0.92 is also easy to
> hack, if it comes to that.

Excuse my ignorance on this, but uCLinux doesn't allowing
forking, so how could I get 2 or more CGI processes
running at the same time to handle the different clients?
Boa multiplexes the incoming ip connections, so I
understand how that part works.

Greg

This message resent by the ucsimm@uclinux.com list server http://www.uClinux.com/



This archive was generated by hypermail 2b30 : Sun Apr 07 2002 - 00:01:36 EST