From: Ben Woodard <ben@va...> - 2001-05-16 18:00:50
Got another feature in gnulpr 2.0 ironed out yesterday. It now
properly handles multiple document jobs. The way that this works is
quite a lot like a relay race.
When sending to a print the spool engine starts up a filter list. The
last item in this filter list is sendlpr. Sendlpr sends the job to the
remote machine. So when the first document hits sendlpr that instance
of sendlpr opens up a connection to the remote machine and sends its
data. At the same time, the second document starts up its instance of
the filter pipeline which ends in sendlpr. This copy of sendlpr
connects to a local socket provided by the first one. When the first
copy of sendlpr gets done sending its data it sends the open socket
down the local file descriptor to the second copy of sendlpr. The
second copy of sendlpr takes this file descriptor and sends its data
down that fd and hands it off to the next one if there is one. The
last instance of sendlpr sends the control file. It is pretty cool.
Get latest updates about Open Source Projects, Conferences and News.