From xemacs-m  Mon May 19 12:17:05 1997
Received: from gwa.ericsson.com (gwa.ericsson.com [198.215.127.2])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id MAA25630
	for <xemacs-beta@xemacs.org>; Mon, 19 May 1997 12:17:03 -0500 (CDT)
Received: from mr1.exu.ericsson.se (mr1.exu.ericsson.com [138.85.147.11]) by gwa.ericsson.com (8.8.2/8.8.2) with ESMTP id MAA24743; Mon, 19 May 1997 12:15:50 -0500 (CDT)
Received: from screamer.rtp.ericsson.se (screamer.rtp.ericsson.se [147.117.133.13]) by mr1.exu.ericsson.se (8.7.1/NAHUB-MR1.1) with SMTP id MAA10598; Mon, 19 May 1997 12:15:50 -0500 (CDT)
Received: from rcur (rcur18.rtp.ericsson.se [147.117.133.138]) by screamer.rtp.ericsson.se (8.6.12/8.6.4) with ESMTP id NAA22872; Mon, 19 May 1997 13:15:47 -0400
To: Hrvoje Niksic <hniksic@srce.hr>
cc: XEmacs Developers <xemacs-beta@xemacs.org>
References: <kigraf98lem.fsf@jagor.srce.hr> <27603.863800390@rtp.ericsson.se> <kiglo5f70rz.fsf@jagor.srce.hr> <2535.863813068@rtp.ericsson.se>  <kign2pvrwjq.fsf@jagor.srce.hr> 
Subject: Re: More than one gnuserv process? Re: gnuserv.el 3.1 
In-reply-to: (Your message of 16 May 1997 22:28:41 +0200.)
             <kign2pvrwjq.fsf@jagor.srce.hr> 
Mime-Version: 1.0 (generated by tm-edit 7.106)
Content-Type: text/plain; charset=US-ASCII
Date: Mon, 19 May 1997 13:15:45 -0400
Message-ID: <7221.864062145@rtp.ericsson.se>
From: Raymond Toy <toy@rtp.ericsson.se>

>>>>> "Hrv" == Hrvoje Niksic <hniksic@srce.hr> writes:


    >> Perhaps XEmacs could use port xxxx0+10*uid+k where xxxx0 is some
    >> default base port, uid is the uid, and k lets me have upto 10
    >> simultaneous XEmacs sessions with gnuserv on each.

    Hrv> Well yes, but how would the gnuclients know to which of the ten to
    Hrv> connect?

What I had in mind was the first XEmacs/gnuserv process gets k = 0; the next,
k = 1; and so on, upto k = 9.  

The clients would have k = 0 by default unless the user selects a
different k.  This is acceptable to me, in the same way that I have to
set DISPLAY to tell XEmacs where to go.  I don't need anything fancier
than this because it's pretty easy to connect up to each one to see if
it's really the one I wanted.


    >> If this is possible, I'm volunteering (gasp!) to make the necessary
    >> changes to allow this (unless someone more skilled beats me to it).
    >> I'll need some pointers on getting these ports, though.  Never used
    >> sockets before.

    Hrv> Never used sockets?  Are you sure you want to look at
    Hrv> gnu{serv,client}.c? :-)

Not quite true---I've used sockets to plug in my eletrical
appliances.  Does that disqualify me from looking at gnu*.c? :-)

I think, however, that I'll wait until your gnuserv stuff stabilizes a
bit more before I try anything out.  Nothing quite like trying to
shoot a moving target when you don't even know which way to hold the
gun.

Ray


