Skip to content

Add ability to discover devices on all local interfaces (subnets)#18

Open
tempelmann wants to merge 3 commits intopierrickrouxel:mainfrom
tempelmann:master
Open

Add ability to discover devices on all local interfaces (subnets)#18
tempelmann wants to merge 3 commits intopierrickrouxel:mainfrom
tempelmann:master

Conversation

@tempelmann
Copy link
Copy Markdown

Should resolve issue #17

I had to disable the code that would abort the discovery if there's an error with the socket, as it's now possible that some of the specified interfaces fail (e.g. due to "not reachable"), yet we want the rest to continue to work.

If all of them fail, then I report that the search is finished, though I'm not sure if that may run into a race condition. Or maybe one should in that special case still report an error.

I leave that up to you. The way it's now it works nicely for me.

Hope this helps, and thank you for providing this code in the first place!

…P addresses of the local interfaces to the parameter `onInterfaces:`.

You can pass the values from the `getIFAddresses` function from https://stackoverflow.com/a/25627545/43615 for this purpose.
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

Successfully merging this pull request may close these issues.

1 participant