From: "Dhruva Krishnamurthy" <devel@member.fsf.org>
Cc: "Jan D." <jan.h.d@swipnet.se>, Emacs Devel <emacs-devel@gnu.org>
Subject: Re: GNU Emacs: Client/Server
Date: Fri, 30 Jan 2004 16:01:12 +0530 [thread overview]
Message-ID: <20040130103112.8EF5433@frontend3.messagingengine.com> (raw)
In-Reply-To: <m38yjpwwkp.fsf@kfs-l.imdomain.dk>
On 30 Jan 2004 11:38:14 +0100, "Kim F. Storm" <storm@cua.dk> said:
> >
> > PS: I am not sending this mail to the list, not to annoy people who are
> > not interested.
>
> I don't have all the answers (and questions) on this subject, so it
> is ok to CC: emacs-devel.
Not a problem.
> The problem with your code is how to mix it with code that must ALSO wait
> on normal network receive and process output. In your code, you have
> two waiting-points (as I understand it:)
>
> > fResult=GetMailslotInfo(g_CRAMP_Profiler.g_h_mailslot,
>
> which I assume waits for connections, and
>
> > fResult=ReadFile(g_CRAMP_Profiler.g_h_mailslot,
>
> which I assume waits to receive data.
Yes.
> Both of these must --somehow-- be wrapped in such a way that they
> become non-blocking operations and/or will function through the normal
This code will be running in it's own thread. So, the main thread is not
blocked (am I missing something?).
> "select" call which more or less combines all waiting points for async
> processing in emacs into one. Actually, I'm not sure select is
> "normal" on W32, but that's the interface you need to emulate to add
> mail-slot support to emacs'.
No idea about that. Never used "select" (used it in PERL).
However, I just recalled that MAIL SLOTS in W32 uses UDP internally. So,
I am fairly certain now that we can get this working using
"make-network-process" in ELisp. I just wrote a very simple ELisp code
(has to be simple if I could write it!) to start a server and listen on a
port. Another method which establishes a connection if server is running
and sends expressions to be evaluated by the server. My gut feeling is
that we can easily have a Elisp implementation of basic "gnuserv"
functionality atleast to open files on existing GNU Emacs process.
Please corect me if I am wrong in my understanding or gross oversights.
with warm regards,
dhruva
________________________________________
Dhruva Krishnamurthy
Proud FSF member: #1935
http://schemer.fateback.com/
next prev parent reply other threads:[~2004-01-30 10:31 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-01-29 11:12 GNU Emacs: Client/Server Dhruva Krishnamurthy
2004-01-29 12:03 ` Jan D.
2004-01-29 12:13 ` Dhruva Krishnamurthy
2004-01-29 16:18 ` Kim F. Storm
[not found] ` <20040130045855.1A6A92E@frontend3.messagingengine.com>
2004-01-30 10:38 ` Kim F. Storm
2004-01-30 10:31 ` Dhruva Krishnamurthy [this message]
2004-01-30 13:03 ` Kim F. Storm
2004-02-01 8:01 ` Richard Stallman
2004-02-01 23:49 ` Kim F. Storm
[not found] ` <20040202092212.C73932E@frontend3.messagingengine.com>
[not found] ` <m3isipwuog.fsf@kfs-l.imdomain.dk>
[not found] ` <jwvr7xdjz98.fsf-monnier+emacs/devel@asado.iro.umontreal.ca>
[not found] ` <m31xpdwgot.fsf@kfs-l.imdomain.dk>
[not found] ` <jwvektdifzf.fsf-monnier+emacs/devel@asado.iro.umontreal.ca>
[not found] ` <20040203044651.3E26A31@frontend3.messagingengine.com>
[not found] ` <jwvektc5jed.fsf-monnier+emacs/devel@asado.iro.umontreal.ca>
2004-02-05 9:52 ` Dhruva Krishnamurthy
2004-02-05 15:05 ` Stefan Monnier
2004-02-06 5:37 ` Dhruva Krishnamurthy
2004-02-06 9:52 ` David Kastrup
2004-02-06 10:02 ` Dhruva Krishnamurthy
2004-02-06 13:36 ` Stefan Monnier
2004-02-07 19:32 ` Richard Stallman
2004-01-29 12:41 ` Kim F. Storm
2004-01-29 12:17 ` Dhruva Krishnamurthy
2004-01-29 13:46 ` Roman Belenov
2004-01-30 5:04 ` Dhruva Krishnamurthy
2004-01-29 15:35 ` Stefan Monnier
2004-02-02 15:15 ` Lőrentey Károly
2004-02-02 16:01 ` Stefan Monnier
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040130103112.8EF5433@frontend3.messagingengine.com \
--to=devel@member.fsf.org \
--cc=emacs-devel@gnu.org \
--cc=jan.h.d@swipnet.se \
/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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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 read-only IMAP folder(s) and NNTP newsgroup(s).