4 ms·
> it is not possible to have two processes on the same machine listening on the same port number. This is not true. One strategy is to use multicast[1]. Anot
by geocar 8y ago
> it is not possible to have two processes on the same machine listening on the same port number.
This is not true.
One strategy is to use multicast[1].
Another strategy is to use SO_BROADCAST+SO_REUSEADDR[2].
[1]: http://www.jarloo.com/c-udp-multicasting-tutorial/ http://www.jarloo.com/c-udp-multicasting-tutorial/
[2]: http://hacked10bits.blogspot.com/2014/12/udp-binding-and-port-reuse-in-linux.html http://hacked10bits.blogspot.com/2014/12/udp-binding-and-por...