The -f option can be used to specify a different printer device, e.g. /dev/usblp0.
The -b option turns on bidirectional copying.
The -v option shows the version number.
A sample SysVinit script, p910nd.sh, is provided for operation as a daemon. p910nd will change its name under ps to match the printer port, i.e. p9100d, p9101d and p9102d.
When running under inetd, the /etc/inetd.conf entry should look something like this (with tcpwrappers protection):
p9101 stream tcp nowait root /usr/sbin/tcpd /sbin/p910nd
Don't forget to add an entry in /etc/services for the corresponding port.
If operating with lprng, use the host%port syntax for the printer device to send jobs to it.
If operating with CUPS, this is supported as the AppSocket protocol, also known as the JetDirect (probably TM) protocol.
If operating with classic Berkeley lpd, a sample client, client.pl, is provided. This should be installed as the ifilter (if=) in /etc/printcap. banner.pl should be installed as the ofilter (of=) in /etc/printcap. It may be necessary to create a dummy spool file for lpd (lp=). This file will be opened but not written to. The corresponding C versions are left as an exercise for the reader.
When running under inetd, more than one instance could be started. To avoid problems with multiple instances attempting to access the printer at the same time, make sure that only one client is active at any one time. This can be done by designating one host as the spooler and sending all jobs to this host. You will probably need to set up an intermediate queue anyway to provide print job filtering.
If compiled with USE_LIBWRAP and linked with -lwrap, it uses the libwrap library (tcpwrappers). Access control can be done with /etc/hosts.allow and /etc/hosts.deny. The service name is p910nd.