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

net: conn generated by ListenMulticastUDP returns other multicast group messages on the same port #8164

Closed
gopherbot opened this issue Jun 7, 2014 · 1 comment

Comments

Projects
None yet
2 participants
@gopherbot
Copy link

commented Jun 7, 2014

by ufmufm:

go version go1.2.1 linux/amd64

http://play.golang.org/p/Cp4rO78CWs

1. start program.
2. send udp packet to address 239.103.3.14:5004 via nc, for example: nc -u 239.103.3.14
5004
123

got this message on screen:

239.103.3.15 got 123
239.103.3.14 got 123

should be only:
239.103.3.14 got 123
@mikioh

This comment has been minimized.

Copy link
Contributor

commented Jun 7, 2014

Comment 1:

Simply ListenMulticastUDP exists for convenience, for simple single-homed applications.
You need to use go.net/ipv4 or go.net/ipv6 for more control.
https://godoc.org/code.google.com/p/go.net/ipv4 
https://godoc.org/code.google.com/p/go.net/ipv6

Status changed to Duplicate.

Merged into issue #3820.

@gopherbot gopherbot added the duplicate label Jun 7, 2014

@golang golang locked and limited conversation to collaborators Jun 25, 2016

This issue was closed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.