I am trying to have multiple programs receive the
same UDP broadcast packets. I have seen
comments that SO_REUSEADDR should allow
this for LINUX. Without SO_REUSEADDR I in fact get
bind errors and with it I can perform the bind.
However only the most recently bound socket
gets the UDP packets. So for instance if I
start program1 it receives the packets just fine.
I leave it running and start program2. It now
starts receiving the packets but program1
no longer sees them. When I exit program2
program1 then begins to see the packets again.
This behavior is the same under both RedHat
7.3 and 9.
Suggestions as to what I am doing wrong?
Peter
|