Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* DECnet, objects, VMS, dnet_conn() ...
@ 1993-05-21 17:14 Chetan Mistry
  1993-05-21 18:29 ` Glenn Horton
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Chetan Mistry @ 1993-05-21 17:14 UTC (permalink / raw)



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 ?

TIA
Chet [email: chetanm@visionware.co.uk]




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: DECnet, objects, VMS, dnet_conn() ...
  1993-05-21 17:14 DECnet, objects, VMS, dnet_conn() Chetan Mistry
@ 1993-05-21 18:29 ` Glenn Horton
  1993-05-21 19:26 ` Paul S. Winalski
  1993-05-22 21:30 ` Carl J Lydick
  2 siblings, 0 replies; 4+ messages in thread
From: Glenn Horton @ 1993-05-21 18:29 UTC (permalink / raw)



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 ?
|> 
|> TIA
|> Chet [email: chetanm@visionware.co.uk]
|> 
|> 

	It's quite possible that the error message is correct. I've had lots of
problems with timeouts on our DECnet network. You can use ncp to show you the 
timers and errors that have occured. Tell ncp to "show count node abc" where 
abc is the node you are trying to communicate with. Also tell ncp to "show exec char"
and see what the incoming and outgoing timers are. You can change them with
a "set incoming timer", "set outgoing timer", "define incoming timer" etc.

-- 

Glenn Horton            SAS Institute Inc.
sasdgh@unx.sas.com      SAS Campus Dr.
919-677-8000 x6640      Cary, N.C. 27513


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: DECnet, objects, VMS, dnet_conn() ...
  1993-05-21 17:14 DECnet, objects, VMS, dnet_conn() Chetan Mistry
  1993-05-21 18:29 ` Glenn Horton
@ 1993-05-21 19:26 ` Paul S. Winalski
  1993-05-22 21:30 ` Carl J Lydick
  2 siblings, 0 replies; 4+ messages in thread
From: Paul S. Winalski @ 1993-05-21 19:26 UTC (permalink / raw)



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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: DECnet, objects, VMS, dnet_conn() ...
  1993-05-21 17:14 DECnet, objects, VMS, dnet_conn() Chetan Mistry
  1993-05-21 18:29 ` Glenn Horton
  1993-05-21 19:26 ` Paul S. Winalski
@ 1993-05-22 21:30 ` Carl J Lydick
  2 siblings, 0 replies; 4+ messages in thread
From: Carl J Lydick @ 1993-05-22 21:30 UTC (permalink / raw)


In article <1993May21.171454.14557@visionware.co.uk>, chetanm@visionware.co.uk (Chetan Mistry) writes:
=	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.

Make it read and write from and to SYS$NET: instead.
--------------------------------------------------------------------------------
Carl J Lydick | INTERnet: CARL@SOL1.GPS.CALTECH.EDU | NSI/HEPnet: SOL1::CARL

Disclaimer:  Hey, I understand VAXen and VMS.  That's what I get paid for.  My
understanding of astronomy is purely at the amateur level (or below).  So
unless what I'm saying is directly related to VAX/VMS, don't hold me or my
organization responsible for it.  If it IS related to VAX/VMS, you can try to
hold me responsible for it, but my organization had nothing to do with it.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1993-05-22 21:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1993-05-21 17:14 DECnet, objects, VMS, dnet_conn() Chetan Mistry
1993-05-21 18:29 ` Glenn Horton
1993-05-21 19:26 ` Paul S. Winalski
1993-05-22 21:30 ` Carl J Lydick

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox