From xemacs-m  Fri May 16 16:42:19 1997
Received: from jagor.srce.hr (root@jagor.srce.hr [161.53.2.130])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id QAA22873
	for <xemacs-beta@xemacs.org>; Fri, 16 May 1997 16:41:21 -0500 (CDT)
Received: (from hniksic@localhost)
          by jagor.srce.hr (8.8.5/8.8.4)
	  id WAA23085; Fri, 16 May 1997 22:28:42 +0200 (MET DST)
To: XEmacs Developers <xemacs-beta@xemacs.org>
Subject: Re: More than one gnuserv process? Re: gnuserv.el 3.1
References: <kigraf98lem.fsf@jagor.srce.hr> <27603.863800390@rtp.ericsson.se>  <kiglo5f70rz.fsf@jagor.srce.hr> <2535.863813068@rtp.ericsson.se>
X-Save-Project-Gutenberg: <URL:http://www.promo.net/pg/nl/pgny_nov96.html>
X-Attribution: Hrv
X-Face: Mie8:rOV<\c/~z{s.X4A{!?vY7{drJ([U]0O=W/<W*SMo/Mv:58:*_y~ki>xDi&N7XG
        KV^$k0m3Oe/)'e%3=$PCR&3ITUXH,cK>]bci&<qQ>Ff%x_>1`T(+M2Gg/fgndU%k*ft
        [(7._6e0n-V%|%'[c|q:;}td$#INd+;?!-V=c8Pqf}3J
From: Hrvoje Niksic <hniksic@srce.hr>
Date: 16 May 1997 22:28:41 +0200
In-Reply-To: Raymond Toy's message of Fri, 16 May 1997 16:04:28 -0400
Message-ID: <kign2pvrwjq.fsf@jagor.srce.hr>
Lines: 29
X-Mailer: Gnus v5.4.52/XEmacs 19.15

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?

Gnuserv process would do that -- XEmacs has no idea what gnuserv
does.  But the trouble is that the gnuclients would have no idea what
port gnuserv has chosen.  The GNU_PORT 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.

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

> 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.

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

-- 
Hrvoje Niksic <hniksic@srce.hr> | Student at FER Zagreb, Croatia
--------------------------------+--------------------------------
I'm sure they'll listen to reason! -- Neal Stevenson, _Snow Crash_

