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

Support list_devices() #19

Open
mojca opened this issue Jan 4, 2017 · 3 comments
Open

Support list_devices() #19

mojca opened this issue Jan 4, 2017 · 3 comments

Comments

@mojca
Copy link

mojca commented Jan 4, 2017

I have some proprietary (closed source) super slow C library for working with vxi11 and that one provides a function that returns all vxi11 devices at the network (and that's fast). This is the only function I miss in this python library.

Is there any chance to provide a search function in this library as well?

@alexforencich
Copy link
Contributor

Give me a wireshark trace of what it does and I'll see about implementing it.

@alexforencich
Copy link
Contributor

So, after some back-and-forth offline, it looks like the way this is done in general is with a broadcast UDP request to the portmapper service on the devices. Support for this already exists in rpc.py, so I put together an initial implementation of list_devices here:

https://github.com/alexforencich/python-vxi11/blob/af50c0ae5046c3ab6b6c7bd3dda03097e72577e6/vxi11/vxi11.py#L501

If all that looks good, then it's probably high time I bump the version.

@mojca
Copy link
Author

mojca commented Jan 24, 2017

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

2 participants