Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get CUPS server address and port from Connection #16

Open
anxuae opened this issue Oct 27, 2019 · 0 comments
Open

Get CUPS server address and port from Connection #16

anxuae opened this issue Oct 27, 2019 · 0 comments

Comments

@anxuae
Copy link

anxuae commented Oct 27, 2019

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 anxuae changed the title Get CUPS address and port from Connection Get CUPS server address and port from Connection Oct 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant