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

Make multicast functional on Windows #42

Merged
merged 1 commit into from
Dec 4, 2022

Conversation

mthespian
Copy link
Contributor

Windows uses socket.IPPROTO_IP for group membership functions. I haven't been able to test on other OSes but it appears likely this should work universally. Would need other test platforms to confirm.

Also shortened README.md line 151 comment to eliminate flake warnings

And added multicast leaves to the two examples that included joins, just to illustrate good practice.

@Hundemeier
Copy link
Owner

The option IPPROTO_IP seems to work on Windows and Linux. I tested with Windows 10 21H2 and Ubuntu 22.04.

I will try to write an integration test (based on the current example.py file), so that the GitHub Actions workflow is able to check the multicast behavior.

I will merge this pull request, but only publish a new version to pypi when I tried to write a new integration test.

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