andre at andregarzia.com
Tue Aug 1 18:57:45 EDT 2017
I just looked at the source code for the new httpd library, it is quite
similar in "what it is doing" to mchttpd and my own revhttpd. Basically
both of them use LC to accept and process requests. I had the impression
that the new library was using some C/C++ based implementation.
The implementation Monte made is very minimalist and elegant. It is easy to
follow and can even serve as a base for more ambitious projects. It suffers
from the same problems as mchttpd and revhttpd though which is, it can't
handle any form of concurrency. If your callback handler blocks, there is a
great chance that any other requests will be discarded (unless LC is
actually buffering and queueing them which would be awesome and also solve
the same issue on the other implementations).
On Tue, Aug 1, 2017 at 5:33 PM, Alex Tweedly via use-livecode <
use-livecode at lists.runrev.com> wrote:
> On 31/07/2017 21:18, Monte Goulding via use-livecode wrote:
> Hi Alex
>> You could use the new httpd library that is already included in LiveCode
>> 9 for this. Indeed this is what it was created for. We build a standalone
>> with all our tests and serve it with the library.
> Yep - found it, and now playing with it. As I said in the other email, I
> couldn't find the docs, but simply ticking "Show IDE Stacks in Lists" and
> then using the project browser got me there. I love Livecode - there's
> always another way :-)
>> What would be ideal is to create a deploy library similar to the the
>> iOS and Android ones. That way the Test button would build and launch the
>> standalone in your browser.
>> That would be useful - but it's not what I have in mind.
> I'll describe what I'm trying to do in a separate rant ....
> Thanks - and thanks for all the help, Monte, Richard, Matthias.
> -- Alex.
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
http://www.andregarzia.com -- All We Do Is Code.
http://fon.nu -- minimalist url shortening service.
More information about the Use-livecode