Writing a server daemon Look in the user.inetd.config table. There's one sub-table as we ship it called http. There are three cells in each table. Count is the number of listeners you want for this daemon, the number of simultaneous active connections. Port is the port number that this daemon will be listening on, and daemon is the script that implements the server.
Every daemon script has a common header.
Its name must be daemon and it takes a single parameter, the address of a table with parameters for an incoming request. You can call netEvents.readStream or netEvents.writeStream or netEvents.statusStream in your daemon script. Don't close the stream, the inetd framework does that for you automatically. This is a new framework, so its interfaces are still subject to change. You can put a call to this script in your system.startup table, or link it to a menu command, or while you're testing, just run the script from the script editing window.