LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   multicasting problem (https://www.linuxquestions.org/questions/linux-networking-3/multicasting-problem-706919/)

softwizz 02-23-2009 02:02 PM

multicasting problem
 
I'm trying to create an app which instances itself and where each instance needs to register its existance with the others. I had assumed that multicast was the way, but I've had a lot of problems, particularly it seems i can't have two or more concurrent listeners on the same mcast-address and port number (the second bind fails). Is that a valid situation, or must I have done something wrong? And if it is valid that there may not exist multiple concurrent listeners on the same mcast-address/port, then how do my instances communicate?

David1357 02-23-2009 04:06 PM

Quote:

Originally Posted by softwizz (Post 3454743)
And if it is valid that there may not exist multiple concurrent listeners on the same mcast-address/port, then how do my instances communicate?

Are you using "setsockopt(SO_REUSEADDR)"?

softwizz 02-23-2009 11:55 PM

multicast problem
 
No, I'd not seen that one mentioned where I got my original steer from. I'll try it - ta!


All times are GMT -5. The time now is 09:08 AM.