Programming and posix - April 2002

April 3, 2002
Solution Symposium
Page 56
hp e3000
programming
and posix
inetd socket applications
MPE INETD invokes socket server programs with
redirection:
fd 0 (stdin) redirected to the accept()ed socket
fd 1 (stdout) redirected to JINETD $STDLIST
fd 2 (stderr) redirected to JINETD $STDLIST
dup2(0,1) for a more typical inetd environment
just do your normal terminal I/O to stdin and stdout
which are really network sockets