pycups
pycups copied to clipboard
Get CUPS server address and port from Connection
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