I have two processes. both listen to the same port.
This is UDP multicast
so both use the socket option SO_REUSEADDR
, and join the multicast group prior to bind()
.
When I send a message to the multicast group ip:port
only one of the processes gets the message.
How can both of them get it?
Thanks.
I don't think it's possible, and I think that sometimes it is a lot more coherent this way. Maybe you should implement a receiver (which will listen to the port) which will distribute the messages to the other processes via inter-processes communication (pipes for instance).