Skip to content

Service remove#71

Closed
inetic wants to merge 6 commits intowindy1:masterfrom
inetic:service-remove
Closed

Service remove#71
inetic wants to merge 6 commits intowindy1:masterfrom
inetic:service-remove

Conversation

@inetic
Copy link
Copy Markdown
Contributor

@inetic inetic commented Jan 21, 2025

The library currently only listens to events indicating that a new service is found but not when zeroconf detects a service is removed. Detecting service disconnection is useful for long running apps which would otherwise, over time, collect many no longer active services.

This PR renames and modifies the TMdnsBrowser::set_service_discovered_callback trait function and changes its Avahi and Bonjour implementations to also handle service removal events.

Further discussion in issue #67

Tested these changes on Linux/Avahi and MacOS/Bonjour.

Note that this is an API breaking change.

Copy link
Copy Markdown
Owner

@windy1 windy1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm sorry it's taken so long to take a look at this. LGTM besides the one minor comment.

@windy1 windy1 mentioned this pull request Apr 23, 2025
@windy1
Copy link
Copy Markdown
Owner

windy1 commented Apr 23, 2025

Moved to #80 because the GH Actions workflow is not triggering, and I don't know why.

@windy1 windy1 closed this Apr 23, 2025
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