From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Stefan Newsgroups: gmane.emacs.devel Subject: Re: Some findings and suggestion about Emacs on w32 Date: Sun, 24 Oct 2004 18:06:29 -0400 Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Message-ID: References: <008d01c4b886$32d07ff0$0200a8c0@sedrcw11488> <417AA9D8.6080600@wyrdrune.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1098655641 26718 80.91.229.6 (24 Oct 2004 22:07:21 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 24 Oct 2004 22:07:21 +0000 (UTC) Cc: Guy Gascoigne-Piggford , Lennart Borgman , rms@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 25 00:07:07 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CLqW2-0008Lt-00 for ; Mon, 25 Oct 2004 00:07:06 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CLqde-0000kx-Lb for ged-emacs-devel@m.gmane.org; Sun, 24 Oct 2004 18:14:58 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CLqdX-0000kh-Tk for emacs-devel@gnu.org; Sun, 24 Oct 2004 18:14:51 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CLqdX-0000kV-HC for emacs-devel@gnu.org; Sun, 24 Oct 2004 18:14:51 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CLqdX-0000kS-14 for emacs-devel@gnu.org; Sun, 24 Oct 2004 18:14:51 -0400 Original-Received: from [206.47.199.164] (helo=simmts6-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CLqVU-00079S-IP; Sun, 24 Oct 2004 18:06:32 -0400 Original-Received: from empanada.home ([67.71.35.140]) by simmts6-srv.bellnexxia.net (InterMail vM.5.01.06.10 201-253-122-130-110-20040306) with ESMTP id <20041024220630.UTMG1635.simmts6-srv.bellnexxia.net@empanada.home>; Sun, 24 Oct 2004 18:06:30 -0400 Original-Received: by empanada.home (Postfix, from userid 502) id 19F37338F16; Sun, 24 Oct 2004 18:06:29 -0400 (EDT) Original-To: Jason Rumney In-Reply-To: (Jason Rumney's message of "Sun, 24 Oct 2004 13:14:45 +0100") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (darwin) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:28860 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:28860 > Thanks. I think the main area that needs porting is the use of > unix domain sockets for communicating between emacsclient and the > server. I think there are some security issues with changing to > TCP or UDP sockets (this has been discussed in the past too), so > mailslots are probably the best replacement on Windows. Last time this came about "it was decided" that mailslots are *not* the way to go. A much better approach is to address the security issues with TCP sockets (UDP is not really an option) because this will then benefit to all users rather than only to w32 ones. The simplest way to get it to work is probably along the following lines: The server side creates a socket on an OS-chosen TCP port. It then checks to see which port was chosen, and writes it to a file, together with a unique random key. Emacsclient then just has to read this same file to find the port to connect to and to find the key to send as an authentication token. Stefan