pycups icon indicating copy to clipboard operation
pycups copied to clipboard

Get CUPS server address and port from Connection

Open anxuae opened this issue 5 years ago • 0 comments

Hi,

I'm currently developing a pycups extension to easily subscribe to RRS notification: https://github.com/anxuae/pycups-notify .

Is there any way to get CUPS server address and port as defined in the Connection object?

For instance:

conn = cups.Connection('198.2.10.34', 9988)

conn.getServer()
conn.getPort()

Currently, I can only get the default server address and port (using cups.getServer() and cups.getPort())

Thanks

anxuae avatar Oct 27 '19 20:10 anxuae