-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
udp_set_membership fails for IPv6 destination addresses #39208
Comments
I got it to work! The syntax for this is a little trickier than one might expect.
To send data, I used the
I found that IPv6 multicast group joins fail if you try to bind to all interfaces with |
That code looks pretty reasonable to me. Any suggestions for what to improve here? |
Added a section at the end showing examples of IPv4/IPv6 UDP multicast. See JuliaLang#39208.
I think a small section in the documentation on UDP multicast could be useful to others. I have added a short section and submitted a pull request. (I am completely new to contributing to someone else's open-source project, so if there is something I can do better about this please let me know). |
Added a section at the end showing examples of IPv4/IPv6 UDP multicast. See #39208. Co-authored-by: Jameson Nash <vtjnash@gmail.com>
I have to thank this post for helping me figure out what I was doing wrong. I was mistakenly trying to bind to the multicast address itself instead of This issue and the referenced documentation pull request are the only examples of working Julia multicasting on the indexed internet that I know of. Thanks for the documentation addition; I think it'll help a lot of people once 1.7 hits the live documentation. |
The documentation is now merged at https://docs.julialang.org/en/v1/manual/networking-and-streams/#Multicast. I will close this issue. |
julia/stdlib/Sockets/src/Sockets.jl
Line 732 in 788b2c7
I am not able to open join an IPv6 multicast destination. Here is an example program that first listens to on an IPv4 multicast destination, then IPv6:
Here is a simple program that sends input to the above:
The error I get is:
I have been poking around in Sockets.jl and https://github.com/libuv/libuv/blob/v1.x/src/win/udp.c but have not come up with anything.
I am translating a Python program into Julia. This may or may not be relevant, but in Python I had to set the address family to
scoket.IPPROTO_IPV6
for IPv6 multicast (see http://svn.python.org/projects/python/trunk/Demo/sockets/mcast.py). Here is a small Python IPv6 receiver for reference:The text was updated successfully, but these errors were encountered: