all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Port of Emacs client / server programs to Windows NT
@ 2006-10-28  9:06 Neil Roberts
  2006-10-28  9:28 ` Jason Rumney
                   ` (2 more replies)
  0 siblings, 3 replies; 17+ messages in thread
From: Neil Roberts @ 2006-10-28  9:06 UTC (permalink / raw)


Hi,

I've made a native port of the emacsclient and emacsserver programs
for Windows that uses named pipes instead of sockets. The programs are
drop-in replacements and should work if you just copy the exe files
into the bin/ folder of an Emacs 21 install.

The advantages of using named pipes instead of TCP are:

- The SID of the current user forms part of the name of the pipe so if
  you use your Windows in a multi-user environment then running
  multiple instances of the server won't collide with each other. The
  client will always connect to the server that was started by the
  same user.

- The access control list is set for the pipe so that only the current
  user can connect to it. Thus there is no security risk that another
  user will mess with your Emacs session, or even worse a remote
  user. There doesn't need to be any complicated authentication
  mechanisms because the authentication built in to Windows is used.

- It won't pop up a warning whining that the emacsserver is opening a
  port on systems that are running the Windows firewall.

- It doesn't require Winsock.

- It is much more like the original Unix implementation of the server.

Unfortunatly when I started writing it, I didn't realise that the
latest CVS no longer runs emacsserver as a separate process so it
won't work after Emacs 22 is released. Would it be worth making the
code in server.el resort back to running a separate process if the
:local sockets are not supported? Or maybe Emacs could be made to use
named pipes instead of sockets if a :local socket is created on
Windows as they seem to be the Windows equivalent of Unix domain
sockets?

If anyone is interested, the programs can be downloaded from here:

http://www.busydoingnothing.co.uk/weserver-0.1.zip

- Neil

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2006-10-30 20:37 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-28  9:06 Port of Emacs client / server programs to Windows NT Neil Roberts
2006-10-28  9:28 ` Jason Rumney
2006-10-30  0:56 ` Stefan Monnier
2006-10-30  0:59   ` David Kastrup
2006-10-30  1:16     ` Stefan Monnier
2006-10-30  7:22   ` Neil Roberts
2006-10-30  8:56     ` Lennart Borgman
2006-10-30  9:11       ` Neil Roberts
2006-10-30  9:30         ` Lennart Borgman
2006-10-30 10:16           ` Kim F. Storm
2006-10-30 10:39             ` Lennart Borgman
2006-10-30 11:00               ` Jason Rumney
2006-10-30 14:17                 ` Neil Roberts
2006-10-30 20:01                   ` Juanma Barranquero
2006-10-30 20:37             ` Eli Zaretskii
2006-10-30 14:10     ` Stefan Monnier
2006-10-30  0:58 ` Stefan Monnier

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.