LinuxQuestions.org

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

softwizz 02-23-2009 03: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 05: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-24-2009 12:55 AM

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 11:15 AM.