[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: w32 does not have emacsclient/server

From: Juanma Barranquero
Subject: Re: w32 does not have emacsclient/server
Date: Wed, 27 Jul 2005 16:34:49 +0200

On 7/15/05, Stefan Monnier <address@hidden> wrote:

> Actually, I don't think so.  IIRC What we need for emacsclient/server to
> work on Windows is to make it work over TCP sockets rather than only over
> Unix sockets (because Windows supports TCL sockets but not Unix sockets).

I'm taking a stab at this. Modifying server.el to use TCP sockets is
trivial, and modifying emacsclient.c should not be hard *if* the Unix
socket support is to be scrapped.

> in server.el, use a TCP server socket (on a non-specified port).
> Once opened, check to see which port was used.  Write the port
> and hostname together with a secret random string into
> ~/.emacs_server.  When a connection comes in, check that the
> first bytes sent are exactly the same as the random string

I suppose this is to avoid choosing a port number as the standard
"Emacs server port"? I'd rather choose a number, and let the user set
it up on server.el and pass it to emacsclient.c in case there's a
conflict on her system...

Another parameter to pass would be the ip address, wouldn't? I'm
assuming it's frequent on non-Windows environments to emacsclient
against an Emacs server at another machine...


reply via email to

[Prev in Thread] Current Thread [Next in Thread]