Skip to content

MDNS and disappearing network interfaces#3

Merged
ronkorving merged 1 commit intoWizcorp:masterfrom
achingbrain:master
Oct 22, 2013
Merged

MDNS and disappearing network interfaces#3
ronkorving merged 1 commit intoWizcorp:masterfrom
achingbrain:master

Conversation

@achingbrain
Copy link
Copy Markdown

This fixes the issue I describe in issue #2

When a service event is encountered, the Browser now caches the interface on which it took place. When subsequent events occur, if the call to dns_sd.if_indextoname(ifaceIdx) fails, it looks the interface name up in the cache. If the name is there it's returned, otherwise the original error is thrown.

Also includes a unit test..

@ronkorving
Copy link
Copy Markdown

Thanks, looks good, really appreciate you added the unit test for it too.

ronkorving pushed a commit that referenced this pull request Oct 22, 2013
MDNS and disappearing network interfaces
@ronkorving ronkorving merged commit 604ef7a into Wizcorp:master Oct 22, 2013
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.

2 participants