phpprintipp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpprintipp] Re: Usage of CupsPrintIPP


From: Thomas Harding
Subject: [Phpprintipp] Re: Usage of CupsPrintIPP
Date: Sun, 12 Sep 2010 16:00:01 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.11) Gecko/20100805 Icedove/3.0.6

Le 07/09/2010 18:40, André Hänsel a écrit :
mailing list is down, so I'w writing to this address I found in the code.

Sorry for the latch : the mail address "laposte" you posted is a very old one
I pick up by a cron script which is down also. Will take a look :)

Trying to post also the response back to the list, which is hosted by
GNU project and can be down /only sometimes/.

What can also happen to you is that this list is restricted on post to
it's subscribers to avoid spam, so please write to
phpprintipp-owner@(same domain) with for subject "subscribe", or
take a look at web subscribing interface on nongnu.org.

When I use just

$ipp->setPrinterURI('ipp://10.10.2.1/printers/p1');

it won't print, but when I use

$ipp->setHost('10.10.2.1');
$ipp->setPrinterURI('ipp://10.10.2.1/printers/p1');

then it works.

So what is the difference between the host part of the print URI and the
host set by setHost()? At least when they are different.

An IPP server can serve to several printers, as any print server does.

Regarding IPP protocol, you address a request to the server for a printer
which is defined internally in the server as a "printer URI".

This is particularly visible with CUPS server.

On network printers, printer URI can be a path into the print server itself.

On some huge network printers, and obviously also on CUPS, you can also
set different default print behavior  (eg B/W or color,  etc) for each
"printer URI" which can be physically the same device.

The SetHost function is to set the IPP server URI (network address) where you
address the request,

while the SetPrinterURI function sets the "printer URI" regarding which one printer
is concerned into the IPP server, defined by the main IPP
RFC(#cantremainnumberbutitstypedinthecodeascomment).

So, the IPP server host (SetHost) prepare your request (eg by translating the "joined file" written in PostScript, PDF or whatever it can handle to hpgl version X), then send the good commands to the printer defined by it's "printer URI" to print, cancel, recall, move to another tray,... your request, then give you feedback about the job you requested.

Is the explanation complete?

HTH,
--
TSFH



reply via email to

[Prev in Thread] Current Thread [Next in Thread]