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

multicast: Configurable TTL and System assigned interface #39

Merged
merged 5 commits into from
Oct 21, 2023

Conversation

koron
Copy link
Owner

@koron koron commented Oct 20, 2023

fix #31, #36

@koron koron self-assigned this Oct 20, 2023
@koron
Copy link
Owner Author

koron commented Oct 20, 2023

need some tests

- ssdp.SetMulticastSystemAssignedInterface()
- ssdp.GetMulticastSystemAssignedInterface()
@koron
Copy link
Owner Author

koron commented Oct 21, 2023

merged another patch of multicast for #36

@koron koron changed the title Configurable TTL multicast: Configurable TTL and System assigned interface Oct 21, 2023
* ttl - set TTL for multicast packages. 0 - use default, 1 or greater
  set TTL.
* sysif - use system assigned multicast interface only.
@koron
Copy link
Owner Author

koron commented Oct 21, 2023

OnlySystemInterface() is tested with ./examples/monitor.

$ go run ./examples/monitor -sysif

in another terminal:

$ go run ./example/alive

./example/monitor will output like this:

2023/10/21 23:24:17 Alive: From=127.0.0.1:49233 Type=my:device USN=unique:id Location= Server= MaxAge=1800

Executed on Windows 11

@koron koron marked this pull request as ready for review October 21, 2023 14:25
@koron koron merged commit 92b1d6d into main Oct 21, 2023
3 checks passed
@koron koron deleted the ttl-configurable-31 branch October 21, 2023 14:26
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.

Add ability to tune the TTL?
1 participant