|
From: | Jason Rumney |
Subject: | Re: w32 does not have emacsclient/server |
Date: | Wed, 27 Jul 2005 16:45:25 +0100 |
User-agent: | Mozilla Thunderbird 1.0.5 (Windows/20050711) |
Juanma Barranquero wrote:
Multiple users can start servers on the same machine, so assigning a "standard" port is likely to conflict. It is better to let the socket library choose a free socket. The client will be reading it from a file anyway, so the user does not need to know what port has been chosen.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 stringI 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?
Stefan's spec above already includes the hostname.
[Prev in Thread] | Current Thread | [Next in Thread] |