From xemacs-m  Wed May 21 02:38:53 1997
Received: from mgate.uni-hannover.de (mgate.uni-hannover.de [130.75.2.3])
	by xemacs.org (8.8.5/8.8.5) with SMTP id CAA22240
	for <xemacs-beta@xemacs.org>; Wed, 21 May 1997 02:38:52 -0500 (CDT)
Received: from helios (actually helios.tnt.uni-hannover.de) by mgate 
          with SMTP (PP); Wed, 21 May 1997 09:38:18 +0200
Received: from daedalus.tnt.uni-hannover.de by helios (SMI-8.6/SMI-SVR4) 
          id JAA25472; Wed, 21 May 1997 09:37:00 +0200
Received: by daedalus.tnt.uni-hannover.de (SMI-8.6/SMI-SVR4) id JAA02200;
          Wed, 21 May 1997 09:36:59 +0200
Date: Wed, 21 May 1997 09:36:59 +0200
Message-Id: <199705210736.JAA02200@daedalus.tnt.uni-hannover.de>
From: Heiko Muenkel <muenkel@tnt.uni-hannover.de>
To: hniksic@srce.hr
Cc: xemacs-beta@xemacs.org
Subject: Re: More than one gnuserv process? Re: gnuserv.el 3.1
In-Reply-To: <kign2pvrwjq.fsf@jagor.srce.hr>
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>
X-Mailer: VM 6.22 under 19.15 XEmacs Lucid
X-Face: n}R'l6CHRf>pi&bj7[x0CW3:kmXm@1)7m+l*9[fp;-Ow4Xe~=5E;skf?2> 
        y]f{HzB|Q(\V9+y$PP~.4G[2n4W7{6Ilm[AMY9B:0kj.K_$-d%p4YIF*bX;=ADp6{ 
        HS@NEv9c.VII+9PgXHASx}K(jy^t=q%qzZ72q1e4E;O!$A$`&wgtLk"1%p.nC_G!] 
        4d1!+J4Q#YD_iXeEy`1x)d\r$1Qn\'23n|[8Y_xzuXJJ7W(EGqnzB]`]aq??;+z=) 
        DW~\'Vq&F'g%QU[Mv2:}nS>SdZFTEC2GsgB=Q,:~H<R5S[:ZN%B:s0;|v1x"Jb
Mime-Version: 1.0 (generated by tm-edit 7.106)
Content-Type: text/plain; charset=US-ASCII

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

    Hrv> Raymond Toy <toy@rtp.ericsson.se> writes:
    >> Is it possible for XEmacs to notice that a port is already in
    >> use and then to use a different one?

    Hrv> Gnuserv process would do that -- XEmacs has no idea what
    Hrv> gnuserv does.  But the trouble is that the gnuclients would
    Hrv> have no idea what port gnuserv has chosen.  The GNU_PORT
    Hrv> variable unifies it (if kludgily).

    >> 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
    Hrv> ten to connect?

Hmm, gnuserv could store the selected portnumber in a special
file. With that gnuclient could use the last one or ask the user to
chose one of the possible portnumbers. One could also store additional
usage information for each port like:
 22222 used-for-email
 22223 used-for-program-xyz
 22224 used-for-all-other-things

What about displaying the portnumber in the title line of the XEmacs,
like "emacs (22222): foo.c"? This would make it easier to get the
right portnumber, if one starts gnuclient by hand.



