[comp.sys.sun] xview client talking to multiple servers

tomj@sun.com (Tom Jacobs) (10/26/89)

Laurence R. Brothers writes:
| First of all, let me apologize if this has come up before; I just started
| reading the group, and there were 3000 articles to catch up on....
| 
| Anyhow, taking my cue from the example on page 83 of the XView 1.0
| Reference Manual: Converting SunView Applications, I wrote a program
| designed to open windows on two different machines simultaneously.
| (source is appended to this posting). Naturally, I ran xhost + on the
| appropriate machines beforehand.
| 
| Curiously enough, the behavior I got was exactly the reverse of
| expected.  Instead of opening one window on each of two remote
| machines, the program opened two (correctly functional) windows on my
| own machine. OK, I thought, so due to some bug, I just connected twice
| with my local server -- not good, but still comprehensible. But then,
| just as a test, I ran xhost - on the remote machines, and I
| immediately got the appropriate errors about being unable to connect
| to remote server foo, access denied, etc.,  when I tried to run my
| program, as if on remote displays as intended.
| 
| In other words, it's as if the client-server relationship suddenly reversed,
| though of course it is impossible that my code suddenly migrated to the
| remote machines. Instead I suppose that in some sort of strange loop, my
| client application is sending two streams of X protocol out to remote
| servers, which for reasons of their own are turning around and beaming
| the damn things back at me to be interpreted by my local server....
| 
| Any clues? Am I just missing something obvious here? Is my code doing
| something stupid? This is version 1.0 FCS Open Windows running on a
| sun 4/260, incidentally.
|
| -Laurence
|  quasar@ctt.bellcore.com

The initial MIT release of XView source (and OpenWindows1.0 XView
libraries) didn't have all the necessary multi-server work completed in
time, but we're hoping to have it in in time for the R4 MIT release and
avaliable on expo in 4-6 weeks.  Rather than go into details about this
now, let's just say that the example in the documentation is very much out
of date. We'll send out more information, including new examples, when the
fixed source is released.  Sorry.

	Tom Jacobs (tomj@sun.com  -or  ..!sun!tomj)
	Sun Microsystems, Inc.
	Mountain View, California