edbrowse-dev - development list for edbrowse
 help / color / mirror / Atom feed
From: Karl Dahlke <eklhad@comcast.net>
To: Edbrowse-dev@lists.the-brannons.com
Subject: [Edbrowse-dev]    curl handles and general comms design
Date: Wed, 30 Dec 2015 08:41:19 -0500	[thread overview]
Message-ID: <20151130084119.eklhad@comcast.net> (raw)
In-Reply-To: <20151230132253.GB2471@122oven.adamthompson.me.uk>

> I'm wondering if we actually need the exec at all or if we can fork and then
> set the flag and whether that'll do.

This just doesn't work well in windows.
You kind of need the separate process so you can use spawn.
See how Geoff has set up the invocation of edbrowse-js.

I know when I worked on the separation of js, the messages
were the most important part, the code just sort of fell out after that.
So I'll send along some high level thoughts
on curl requests and responses.

Yes, a more generic messaging system, a layer above sockets, might be nice,
and I almost did that with js.
I sort of had to for my own sanity.
The message header includes a length for an error string,
and then the error string, if there is one, (length nonzero),
then the length for the js side effects,
and the side effects, if there are any,
and finally the js item requested or the acknowledgement of the action.
Now I have some general parsing of every message.
I can glom onto the js error, if any,
as part of the message envelope,
and the same for js side effects.
A higher level structure like this might be what you're looking for,
and it doesn't take a lot of coding to seee that you need it.

Karl Dahlke

  reply	other threads:[~2015-12-30 13:40 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-29 19:17 Adam Thompson
2015-12-29 19:57 ` Karl Dahlke
2015-12-29 22:27   ` Chris Brannon
2015-12-30 12:01   ` Adam Thompson
2015-12-30 12:26     ` Karl Dahlke
2015-12-30 13:22       ` Adam Thompson
2015-12-30 13:41         ` Karl Dahlke [this message]
2016-01-05  0:38 ` Chris Brannon
2016-01-08 19:43   ` Adam Thompson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20151130084119.eklhad@comcast.net \
    --to=eklhad@comcast.net \
    --cc=Edbrowse-dev@lists.the-brannons.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).