|
Try something like this
$set display/create/node=yendor/transport=tcpip foo
$set display/create/node=yoyodn/transport=decnet bar
$sho log foo
"FOO" = "_WSA37:"
$sho log bar
"BAR" = "_WSA38:"
display1 = XtOpenDisplay(appcontext,"_WSA37:","MYAPP","myapp",
0,0,&argc,*argv);
display2 = XtOpenDisplay(appcontext,"_WSA38:","MYAPP","myapp",
0,0,&argc,*argv);
You can translate FOO and BAR inside your application if you want.
to avoid hard coding the WSA numbers:
char *foo,*bar;
foo = getenv("FOO");
bar = getenv("BAR");
display1 = XtOpenDisplay(appcontext,foo,"MYAPP","myapp",
0,0,&argc,*argv);
display2 = XtOpenDisplay(appcontext,bar,"MYAPP","myapp",
0,0,&argc,*argv);
MJC
|
| I am still miffed by this. I have hardcoded the workstation number
in the XtOpenDisplay, have UCX running, am authorized to access the server
node, have the address and nodename of the client in /etc/hosts on the
server, but, still get a NULL in display1. This all works fine using DECNET.
I can even use "node::0" in the XtOpenDisplay routine and open multiple
displays as long as they are in my volatile database and I am authorized to
connect to the server. If I do a create/term/display=foo and foo is the logical
from set display/create/node=yendor/transport=tcpip foo, the error that is
returned is:
%DECW-E-CANT_OPEN_DISPL, Can't open display
%SYSTEM-F-IVLOGNAM, invalid logical name
which is in sys$message:decw$terminalmsg.exe.
This does not sound like a security problem, but I am not sure where
to look. Has anyone done this?
Bill
|
| Using a single colon to specify TCP/IP in XOpenDisplay and friends
is unsupported on VMS. Mike's suggestion is the correct and supported
way to use both TCP/IP and DECnet transports in the same program.
Can you get any program to use TCP/IP? For example,
$ SET DISPLAY/CREATE/TRANS=TCPIP/NODE="yendor"
$ RUN DECW$EXAMPLES:ICO
Note that TCP/IP node names must be quoted if the node names are
lower case, and they don't have an uppercase alias in the TCP/IP
node name database.
|
| I had to quote the Ultix node in the set display command as you stated.
Thank you!!!
Should you be able to use DECNET and TCPIP from one process/one application
context to open multiple displays. I can now open either TCPIP transport
servers or DECNET transport servers from the application, but when I attempt
to open a DECNET transport node after opening a TCPIP transport node, the call
to XtOpenDisplay fails with an accvio on the guard page. Weird...
Your help is greatly appreciated.
Bill
|