[comp.windows.x] Client-server communications on same machine

soh@shiva.trl.oz (kam hung soh) (09/19/90)

Dear Netters,

I'd like to know the form of communication between the client and the
server on the Sun implementation of X.  Is it TCP/IP?

I'm running a SparcStation 1+ with SunOS 4.0.3.

Please email, and I'll summarise if there is enough interest.

Thanks.

-----
Soh, Kam Hung      email: h.soh@trl.oz.au     tel: +61 03 541 6403 
Telecom Research Laboratories, P.O. Box 249, Clayton, Victoria 3168, Australia 

soh@shiva.trl.oz (kam hung soh) (09/20/90)

I received this from guy%auspex.com@munnari.oz (Guy Harris):


At least with the MIT server (and probably with the Open Windows server
as well), it's a UNIX-domain socket, if the client and server really are
on the same machine and you haven't mucked with "DISPLAY" (i.e., if you
muck with display, you can convince XOpenDisplay that they aren't the
same machine, e.g.  setting it to "yourmachinename:0" rather than ":0"
or, at least in the MIT X11R4 library, "::0" or "unix:0", all of which
get a UNIX-domain socket).

----

I guess it means that if you are running X (and perhaps Openwindows),
it would be a good idea to leave your DISPLAY variable as :0.0 or
unix:0.0 for clients started on the host machine.  I have tried it,
and the server *seems* to react faster and clients *seem* to work
faster.

*seem* was used because I can't think of any objective way to measure
the server's speed.

------

Soh, Kam Hung      email: h.soh@trl.oz.au     tel: +61 03 541 6403 
Telecom Research Laboratories, P.O. Box 249, Clayton, Victoria 3168, Australia