How to get ip adress of any queue name

Azuri azuri.shah at fmr.com
Thu Sep 29 10:21:38 PDT 2011


No I want to try something really simple. Say when u type ping printQueue name it gives me ip address. I want to do something similar in the mac app I am getting. I allow IP printing in my app. For that user enters IP adress. But what when user enter printqueue name? I want to convert that to IP adress so I can execute the same code after that,


> First, this doesn't work in general.
>
> Second, you need to get the "device-uri" attribute for a printer, and then get the hostname from the URI, and then resolve that.
>
> Finally, you'll also need to handle non-network queues, Bonjour queues (which require a separate DNSServiceResolve step to get the hostname)
>
> Why are you trying to do this?
>
> On Sep 29, 2011, at 9:46 AM, Azuri wrote:
>
> > I want user to just past the name of the printer and then api to reolve the name and get IP adress. How do I do that.I am trying getHostByname but its not working.
> > _______________________________________________
> > cups-dev mailing list
> > cups-dev at easysw.com
> > http://lists.easysw.com/mailman/listinfo/cups-dev
>
> ________________________________________________________________________
> Michael Sweet, Senior Printing System Engineer, PWG Chair
>





More information about the cups-devel mailing list