rcvie@tuvie (Alcatel-ELIN Forsch.z.) (07/12/89)
I am trying to use XWindow so as to make two clients running on two differents systems, connected on the same DECNET network, communicate with each other. The Hardware consits of VAX/VMS 2000 and 3100 workstations and SUN/UNIX 3/60 workstations. The XWindow version is based upon X11 protocol releaseII. When connecting two sytems A and B, one of the first step to take should consist in connecting the two systems on the same Xserver (the Xserver on A for instance). It should be possible to add B in the host access list of A, by running on A a client connected to the Xserver of A and using the Xlib routine XAddHost(Display*,XHostAddress*). Unfortunately, this routine doesn't seem to work on our systems or I don't know how to use it properly. The XHostAddress structure is the following: int family; (FamilyDECnet or FamilyInternet or FamilyChaos) int length; char *address; On our DECnet network I set each fields to the following values, which should fit the format indicated in the manuals: family=FamilyDECnet; length=2; *address=1024*AERA_NUMBER+NODE_NUMBER; ......and it always failed! What is more, the XlistHost(Display*) doesn't seem to return the correct values, It returns on the VAX/VMS: family=128; length=x, where x is the lengh of the following string: *address="* NODE_NAME USER_NAME" and it returns on the SUN/UNIX: family=0 ; length=4 ; *addresse= a four byte address; (This seems to be the identification of a TCP/IP address) I tried to set the fields using these returned formats but it didn't work either. Consequentely, I don't really know how to set properly the fields of the XHostAddress structure. I would like to know whether someone has already used successfully this routine on a DECNET network and could tell me the steps I should take to use it correctly. Any helpfull hand is welcomed! Daniel ------------------------------------------------------------------------------ Daniel Min-Tung Alcatel-Elin Research Centre Ruthmerg. 1-7 Fax : +431/391452 1210 Vienna, Austria E-Mail: rcvie@tuvie ------------------------------------------------------------------------------