[cups.development] want to original client host to appear in lprcontrol file....
Michael Sweet
mike at easysw.com
Thu Sep 28 06:38:59 PDT 2006
wtautz wrote:
> ...
> The localhost variable is set by
>
> httpGetHostname(NULL, localhost, sizeof(localhost));
>
> I think.
Correct.
> I would like to have the value be
>
> job-originating-host-name
>
> attribute which I believe I can get via
>
> (attr = ippFindAttribute(job->attrs, "job-originating-host-name",
> IPP_TAG_ZERO)) != NULL)
>
> I think attr is a pointer to some kind of record? Hopefully its a string.
You'll need to do an IPP request to the local server to get the
job-originating-host-name value from an IPP_GET_JOB_ATTRIBUTES
request. Unfortunately, it isn't just a couple of lines of code,
more like a couple dozen...
--
______________________________________________________________________
Michael Sweet, Easy Software Products mike at easysw dot com
Internet Printing and Document Software http://www.easysw.com
More information about the cups
mailing list