[cups.development] Filter - backend communication example?

Michael Sweet msweet at apple.com
Thu Feb 4 14:01:42 PST 2010


On Feb 4, 2010, at 1:45 PM, Paul Newall wrote:
>> ...
> Thank you, That was the roughly kind of thing I was trying. My filter code is like this
> fp is a FILE pointer to stdout
> 
> 	fprintf(fp, "LockPrinter?");
> 	fflush(fp);
> 
> Then I do the cupsSideChannelDoRequest call and get CUPS_SC_STATUS_OK
> 
> But fflush(fp); is not causing the packet to be sent to the printer. I still get a large packet, starting with "LockPrinter?" followed by all my subsequent print data.
> 
> My filter, written in c, is set up in a pipeline following ghostscript by a script (maybe that's relevant?)


Possibly.  However, it might be more relevant to know which backend you are using...

___________________________________________________
Michael Sweet, Senior Printing System Engineer



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cups.org/pipermail/cups/attachments/20100204/2b516e4a/attachment.html>


More information about the cups mailing list