Command syntax:
receive-job = %x02 printer-name LF
The control file and data files mentioned in the following paragraphs
are received via LPD sub-commands that follow this command. Their
mapping to IPP commands and attributes is described later in this
section.
The mapper maps the 'Receive a printer job' command to either:
- the Print-Job operation which includes a single data file or
- the Create-Job operation followed by one Send-Document operation
for each data file.
If the IPP printer supports both Create-Job and Send-Document, and if
a job consists of:
- a single data file, the mapper SHOULD use the Print-Job
operation, but MAY use the Create-Job and Send-Document
operations.
- more than one data file, the mapper SHALL use Create-Job
followed by one Send-Document for each received LPD data file.
If the IPP printer does not support both Create-Job and Send-
Document, and if a job consists of:
- a single data file, the mapper SHALL use the PrintJob
operation.
- more than one data file, the mapper SHALL submit each received
LPD data file as a separate Print-Job operation (thereby
converting a single LPD job into multiple IPP jobs).
RFC 2569 Mapping between LPD and IPP Protocols April 1999
If the mapper uses Create-Job and Send-Document, it MUST send the
Create-Job operation before it sends any Send-Document operations
whether the LPD control file, which supplies attributes for Create-
Job, arrives before or after all LPD data files.
NOTE: This specification does not specify how the mapper maps: the
LPD Printer-name operand to the IPP "printer-uri" operation
attribute.
The following three sub-sections gives further details about the
mapping from LPD receive-a-printer-job sub-commands. Each of the
following subsections appear as sub-sections of section 6 of RFC
1179.
3.2.1 Abort job
Sub-command syntax:
abort-job = %x1 LF
This sub-command of receive-a-printer-job is intended to abort any
job transfer in process.
If the mapper receives this sub-command, it SHALL cancel the job that
it is in the process of transmitting.
If the mapper is in the process of sending a Print-Job or Create-Job
operation, it terminates the job either by closing the connection, or
performing the Cancel-Job operation with the job-uri that it received
from the Print-Job or Create-Job operation.
NOTE: This sub-command is implied if at any time the connection
between the LPD client and server is terminated before an entire
print job has been transferred via an LPD Receive-a-printer-job
request.
3.2.2 Receive control file
Sub-command syntax:
receive-control-file = %x2 number-of-bytes SP name-of-control-file LF
number-of-bytes = 1*DIGIT
name-of-control-file = "cfA" job-number client-host-name
; e.g. "cfA123woden"
job-number = 3DIGIT
client-host-name = <a host name>
RFC 2569 Mapping between LPD and IPP Protocols April 1999
This sub-command is roughly equivalent to the IPP Create-Job
operation.
=4= |