How to get entire PDU size without spooling?

Volker Lendecke Volker.Lendecke at SerNet.DE
Fri Nov 14 10:33:48 GMT 2008


On Fri, Nov 14, 2008 at 06:07:24PM +0800, lorin liu wrote:
> Yes, I want to know the overall size of the print job before the job
> data arrives.
> 
> I saw samba codes for one day but still don't find out how to get the
> size of PDU file, and I know the in_buffer(pipes_struct->in_data) is
> part of PDU data when transferd every time.

The client just does not provide this information, so the
only way for Samba to know how large a print job is to wait
until it's finished.

> Another problem also confuses me:
> print_job_end() function(according spoolss command:
> SPOOLSS_ENDDOCPRINTER) when or where to be invoked? SAMBA how to know
> they're done?

Well, it's called when the client tells us the print job is
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/84d6dd49/attachment.bin


More information about the samba-technical mailing list