Programming and posix - February 2001
February 10, 2001
Solution Symposium
Page 55
hp e3000
programming
and posix
inetd socket applications
• MPE INETD invokes servers 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