From:	SMTP%"RELAY-INFO-VAX@CRVAX.SRI.COM" 18-MAY-1993 19:16:13.36
To:	EVERHART
CC:	
Subj:	SOLVED: DecNet TTT with VMS/POSIX as Server

From: tom@finwds01.tu-graz.ac.at (Thomas Leitner)
X-Newsgroups: comp.os.vms
Subject: SOLVED: DecNet TTT with VMS/POSIX as Server
Date: 18 May 1993 16:54:31 GMT
Organization: Technical University of Graz, Austria
Lines: 27
Message-ID: <1tb4c7INNjjb@fstgds15.tu-graz.ac.at>
NNTP-Posting-Host: finwds01.tu-graz.ac.at
X-Newsreader: TIN [version 1.1 PL9]
To: Info-VAX@KL.SRI.COM
X-Gateway-Source-Info: USENET

The solution is: Use the following command file to start up the Posix
server:

$ open/read/write/error=opnerr infile sys$net
$ posix/nodeb/run/input=infile/output=infile <.wiis.lib.cslib>srv.
$ close infile
$ exit
$ opnerr:
$ write sys$output "can't open net channel"
$ exit

In the server code, change stdin to RAW mode and turn off echoing using
standard POSIX termios calls. Copy fileno(stdin) to netin and
fileno(stdout) to netout and use these as network in/out sockets,
respectively. Open a log file and redirect stdout and stderr to the
log file.

Thanks how I do it now. Hope I don't run into more problems since
I got to do non-blocking read.

Tom
-------------------------------------------------------------------------
Tom Leitner, Dept. of Communications, Technical University Graz / Austria
Internet: tom@finwds01.tu-graz.ac.at  or  tom@piassun1.joanneum.ac.at
FidoNet : 2:316/7.91
-------------------------------------------------------------------------
When a train station is where the train stops, what is a workstation?