How to get entire PDU size without spooling?

Volker Lendecke Volker.Lendecke at SerNet.DE
Fri Nov 14 09:49:30 GMT 2008


On Fri, Nov 14, 2008 at 05:05:18PM +0800, lorin liu wrote:
> Now, I don't want to generate this temp file, so I set job.fd to be a
> socket fd. Meanwhile, when samba start a print job to make spooling I
> DO submit print request to my printer server. Notice that this action
> happen before wirte the PDU data(print_job_write), and then there is a
> question: How to get the entire PDU file size before invoke
> print_job_write function?

Just to make sure: You want to know the overall size of the
print job before the job data arrives? I doubt this is
available at all. Clients just send stuff and at some point
tell us they're done.

Volker
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20081114/641ae71a/attachment.bin


More information about the samba-technical mailing list