From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,fbe4cd419d7b8761 X-Google-Attributes: gidf7344,public X-Google-Thread: f7cd1,fbe4cd419d7b8761 X-Google-Attributes: gidf7cd1,public X-Google-Thread: 1164f8,fbe4cd419d7b8761 X-Google-Attributes: gid1164f8,public X-Google-Thread: f9abd,fbe4cd419d7b8761 X-Google-Attributes: gidf9abd,public X-Google-Thread: ffe3b,fbe4cd419d7b8761 X-Google-Attributes: gidffe3b,public X-Google-Thread: 10fc0e,fbe4cd419d7b8761 X-Google-Attributes: gid10fc0e,public X-Google-ArrivalTime: 1993-05-21 12:36:33 PST Xref: gmd.de comp.sys.dec:7823 biz.dec:448 vmsnet.misc:1242 vmsnet.networks.desktop.pathworks:4819 comp.os.vms:23936 Newsgroups: comp.sys.dec,biz.dec,vmsnet.misc,vmsnet.networks.desktop.pathworks,vmsnet.networks.misc,comp.os.vms Path: gmd.de!newsserver.jvnc.net!howland.reston.ans.net!ux1.cso.uiuc.edu!sdd.hp.com!decwrl!pa.dec.com!decabo.abo.dec.com!e2big.mko.dec.com!dbased.nuo.dec.com!adserv.enet.dec.com!winalski From: winalski@adserv.enet.dec.com (Paul S. Winalski) Subject: Re: DECnet, objects, VMS, dnet_conn() ... Message-ID: <1993May21.192658.3878@dbased.nuo.dec.com> Sender: news@dbased.nuo.dec.com (USENET News System) Reply-To: winalski@adserv.enet.dec.com (Paul S. Winalski) Organization: Digital Equipment Corporation, Nashua NH X-Newsreader: mxrn 6.18-4 References: <1993May21.171454.14557@visionware.co.uk> Date: Fri, 21 May 1993 19:26:58 GMT In article <1993May21.171454.14557@visionware.co.uk>, chetanm@visionware.co.uk (Chetan Mistry) writes: |> |>Hi all, |> I'm having a few problems talking to objects on VMS. I have registered |>a server on our VMS box using NCP. |>eg. |>ncp> set object echo1d file echo1d.exe number 250 |>ncp> show object echo1d |> |>Object Volatile Summary as of 21-MAY-1993 17:31:53 |> |> Object Number File/PID User Id Password |> |> ECHO1D 250 ECHO1D.EXE |> |>This "echo1d.exe" loops in a while loop reading from stdin and writing |>to stdout. |> |>On an ultrix machine running decnet I have the following client |>program ("bacon" is our VMS host) :- |> |>main() |>{ |> int sock; |> |> sock = dnet_conn("bacon", "#250", 0, 0, 0, 0, 0); |> |> if (sock < 0) { |> nerror("dnet_conn"); perror("dnet_conn"); exit(); |> } |> fprintf(stderr, "Connected...\n"); |> |> write/read operations on sock ...... |>} |> |>Running this client I get :- |>% a.out |>dnet_conn: Connect failed, No response from object |>dnet_conn: Connection timed out |> |>The server "echo1d.exe" is executed because I have configured it so that it |>echo's a message to a file in the very first line. |> |>What's happening ? Whats the client expecting from the server ? It sounds like your server is expecting stdin and stout to be the DECnet link. That's not how DECnet-VAX works. When the program that is your server object runs, logical name SYS$NET points to the DECnet link. You must open SYS$NET as a file for input and/or output. This performs two functions: first, it accepts the DECnet logical link and completes the connection, and second, it lets you communicate over the logical link. Since your server never opened SYS$NET, it never completed the network connection and eventually the client side timed it out, with the results that you saw. --PSW