From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f678f,df16b1468bf9036c,start X-Google-Attributes: gidf678f,public X-Google-ArrivalTime: 1995-01-13 09:13:43 PST Path: nntp.gmd.de!newsserver.jvnc.net!howland.reston.ans.net!news.sprintlink.net!cs.utexas.edu!swrinde!emory!nanovx!dragon!cgi!libove Newsgroups: comp.unix.osf.misc Subject: How to make DECnet connection to CTERM object from program? Message-ID: <1995Jan13.131343.62@cgi.uucp> From: libove@cgi.uucp Date: 13 Jan 95 13:13:43 EDT Organization: Computer Generation, Inc. Can someone please email to me with information about creating a DECnet connection from an OSF/1 machine (the commands are probably the same from an ULTRIX machine) in a program, to the CTERM service on a VMS machine, and "negotiate" the connection so that I can then take that file descriptor and use it to read the USERNAME prompt, "log in", and have my program act as though it were a human user? I've found the dnet_conn() library call, and been able to use it to open the connection to object '#42' at the remote end (either on a VMS system or on an OSF/1 system), but there is a protocol negotiation phase that must then be completed, which I don't understand. A challenge arrives once the connection is established to object '#42' (CTERM) which consists of: ^A^B^D^@^G^@^P^@ (that is, ASCII [decimal] codes 1, 2, 4, 0, 7, 0, 16, 0) I've found and skimmed through the documents on gatekeeper.dec.com in the pub/DEC/DECnet/PhaseIV/ directory, and though I think they describe what is happenning, I'm unable to convert those old protocol descriptions in to actual codes/responses. For my purposes, it would be sufficient to know simply what to send back to that challenge so that the connection is put in to passall mode (in the sense that there's nothing special about the connection - if it looked just like the result of "dlogin" [SET HOST] that would be fine). My e-mail address is libove@libove.mindspring.com, though hopefully a reply to this posting address libove@compgen.com or uunet!cgi!libove should also work. Thanks!! Jay Vassos-Libove Computer Generation, Inc.