[comp.sys.hp] sockets on HP9000/825

jim@hpiacla.HP.COM (Jim Rogers) (08/31/88)

Interesting problem.........

Since your standard utilities are working why not piggy-back onto them?

The standard network utilities such as remote-shell are accomplished using
the "inetd" daemon on the 9000/825.  You too can use the services of the
"inetd" daemon.

A few notes on how your server must work with the inetd daemon:

   1) "inetd" connects both stdin and stdout from your server to the
      socket.  You want to write a daemon that reads from stdin and writes
      to the tape drive.  (The obvious beauty is that you can test the server
      locally without using the network).

   2) The server needs its own entry in the /etc/services file on both the
      9000/825 and the XENIX system.

   3)  The service must be added to the /etc/inet.conf file on the 9000/825.
       See the MAN page for inetd for full details.  (I will no include it here
       due to size.)

When your XENIX system requests connection to the service the inetd daemon 
will handle the connections and fork/exec the service.

You should be up and running quickly.

Another advantage of this scheme is that the inetd daemon is run by the "init"
process.  Init will ensure that the daemon continues to run as long as the
system is up.


**********************************************************************
*    Jim Rogers   at Hewlett-Packard Industrial Applications Center  *
*                                                                    *
*    jim@hpiacla.HP.COM                                              *
**********************************************************************