Greg,
Can we try whacking this change on our xemacs source so I can try it? Jan
had a pretty good idea to allow pid's to be the connection point rather than
port id's which are a pain. When you get a chance let me know and I'll try it
out.
Thanks,
(RAZ)
"Greg J. Badros" <gjb(a)cs.washington.edu> writes:
> I'm trying to get multiple gnuserv processes running on the same machine
> at different ports so that I can selectively connect to a specific one.
I just helped somebody with exactly the same problems... You even
thought of the same solution...
> My attempt to make this work has been to set GNU_PORT to a distinguished
> number before starting the XEmacs processes. Then I was hoping to be able
> to use, e.g.,
>
> gnuclient -p 21033
>
> [Discovered that you need -h to force internet sockets]
>
> [patch proposed to disable "-nw" check which incompatible with -h]
I instead propose the patch appended at the end of this message. That
should make just specifying "-p" work. It is untested but "obvious".
Could you try this out? (the "-nw" check should also check that
hostname != unix, but I didn't to that)
> any) of this suggestion, but it seems likely that mangling the UID +
> some user-specified number would be a nice way to provide this
> capability in a fairly clean way.
There already is a UID in the name of the directory where the named
pipe resides. I intend to allow a second name pipe in that dir that
depends on the Emacs PID. That should allow multiple gnuservs with
Unix domain type connections.
Jan
2000-03-08 Jan Vroonhof <vroonhof(a)math.ethz.ch>
* gnuslib.c (make_connection): Also force internet socked
connection when port is specified.
Index: gnuslib.c
===================================================================
RCS file: /usr/CVSroot/XEmacs/xemacs/lib-src/gnuslib.c,v
retrieving revision 1.8.2.2
diff -u -u -r1.8.2.2 gnuslib.c
--- gnuslib.c 2000/02/16 02:06:22 1.8.2.2
+++ gnuslib.c 2000/03/08 11:12:51
@@ -87,7 +87,7 @@
portarg = atoi(ptr);
#endif
- if (hostarg != NULL) {
+ if (hostarg != NULL || portarg) {
/* hostname was given explicitly, via cmd line arg or GNU_HOST,
* so obey it. */
#ifdef UNIX_DOMAIN_SOCKETS
--
Jan Vroonhof
http://www.math.ethz.ch/~vroonhof/
Mathematik, vroonhof @ math.ethz.ch
HG E16, ETH-Zentrum, Tel: +41-1-6325456/25154
Raemistrasse 101, CH-8092 Zuerich. Fax: +41-1-6321085