[comp.windows.x] Socket Numbers in X11

awhitton@bcara2.bnr.ca (Alan Whitton) (11/01/89)

Hello:

Which socket numbers does X11 use for client-server communication?
I am assuming this is socket based communication, is this correct?
Are a "group" reserved for this purpose? If so where is this written
down?

Be Seeing You,
Alan 

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Alan Whitton               awhitton@bnr.ca  OR
Bell Northern Research     awhitton%bnr.ca@cunyvm.cuny.edu
(613) 763-8871             "I am not a number, I am a Free Man!"

rws@EXPO.LCS.MIT.EDU (Bob Scheifler) (11/02/89)

    Which socket numbers does X11 use for client-server communication?

I don't know what a "socket number" is.  When using X11 over TCP,
TCP port (6000 + N) is used, where N is the display number.  I
forget exactly how many were registered with the TCP authority.

    If so where is this written down?

See the Connection Setup section of the protocol specification
(page 553 in the DP book).

tomg@hpcvlx.cv.hp.com (Thomas J. Gilg) (11/03/89)

 
> Which socket numbers does X11 use for client-server communication?
> I am assuming this is socket based communication, is this correct?
> Are a "group" reserved for this purpose? If so where is this written
> down?

To the best of my knowledge, the Server and Clients make _initial_
contact over the "well-known tcp ports" 6000 + n  where n equals
your display number (eg, foo:0.0 uses port 6000, foo:3.4 uses port 6003).
Once the initial connection and verifications are made, a unique
port is agreed upon (how, I'm not sure) for further server/client 
communications on a per client basis.

> Alan 

Thomas Gilg
tomg@cv.hp.com