From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Dhruva Krishnamurthy" Newsgroups: gmane.emacs.devel Subject: Re: GNU Emacs: Client/Server Date: Fri, 06 Feb 2004 11:07:54 +0530 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <20040206053754.30BFC4B@frontend3.messagingengine.com> References: <20040129111259.67CF418B@frontend3.messagingengine.com> <32D82A01-5253-11D8-82BB-00039363E640@swipnet.se> <20040129121313.766CE37D@frontend3.messagingengine.com> <20040130045855.1A6A92E@frontend3.messagingengine.com> <20040202092212.C73932E@frontend3.messagingengine.com> <20040203044651.3E26A31@frontend3.messagingengine.com> <20040205095216.528FC31@frontend3.messagingengine.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1076046036 8345 80.91.224.253 (6 Feb 2004 05:40:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 6 Feb 2004 05:40:36 +0000 (UTC) Cc: Emacs Devel Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Fri Feb 06 06:40:29 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Aoyj7-0004qr-00 for ; Fri, 06 Feb 2004 06:40:29 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1Aoyj6-0007bc-00 for ; Fri, 06 Feb 2004 06:40:28 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AoyhF-0004vp-5s for emacs-devel@quimby.gnus.org; Fri, 06 Feb 2004 00:38:33 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1Aoyh9-0004vg-JR for emacs-devel@gnu.org; Fri, 06 Feb 2004 00:38:27 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1Aoygd-0004px-E6 for emacs-devel@gnu.org; Fri, 06 Feb 2004 00:38:26 -0500 Original-Received: from [66.111.4.25] (helo=out1.smtp.messagingengine.com) by monty-python.gnu.org with esmtp (Exim 4.24) id 1Aoygd-0004pb-3m for emacs-devel@gnu.org; Fri, 06 Feb 2004 00:37:55 -0500 Original-Received: from frontend3.messagingengine.com (frontend3.internal [10.202.2.152]) by mail.messagingengine.com (Postfix) with ESMTP id 2B46F4D2CBE; Fri, 6 Feb 2004 00:37:54 -0500 (EST) Original-Received: by frontend3.messagingengine.com (Postfix, from userid 99) id 30BFC4B; Fri, 6 Feb 2004 00:37:54 -0500 (EST) Content-Disposition: inline X-Mailer: MIME::Lite 1.2 (F2.72; T1.001; A1.60; B2.21; Q2.21) Original-To: "Stefan Monnier" X-Sasl-Enc: cMGvWO+m5GfRBEWsMcZ2kQ 1076045874 In-Reply-To: X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:19762 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:19762 On 05 Feb 2004 10:05:01 -0500, "Stefan Monnier" said: > Maybe you know it and you're just experimenting, but I just want to make > sure you do realize that gnuclient/gnuserver already solve those > problems, so clearly there isn't much point is creating yet another system. What about portability and distribution issues since it is written in C? My idea was to write the whole stuff in Elisp and allow Emacs to handle the platform dependend stuff. with this approach, I can be sure that where Emacs runs, the client/server code will run with no extra effort. > What we want instead is to extend server.el and emacsclient.c with support > for TCP sockets (and maybe add an elisp version of emacsclient.c). This is not a problem. I had a brief look at the _usage_ of emacsclient.c source (since I cannot build it on w2k). IMHO, you can just visit files (at line and col) using the client and nothing beyond like invoking commands etc. Please correct me if I am wrong in my assumption. I plan to go ahead with a Elisp version of emacsclient.c shortly. > > - Server accepts a *secret* word which is then used to validate all > > client connections > > Ex: (emacsserver-start "secret") > > I'd prefer an automatically generated random string, but it otherwise > looks reasonable. How will the client know the randomly generated string to establish an auth'ed connection? Do you suggest that the random string be stored in a file which only the user invoking the server has access? -dhruva ________________________________________ Dhruva Krishnamurthy Proud FSF member: #1935 http://schemer.fateback.com/