Is it possible to have multicast communications on a AF_UNIX
SOCK_DGRAM
socket on Linux ?
Apparently a patch was proposed over a decade ago. However, I cannot find any resource on Internet showing its usage. And the following simple code reports Operation not supported
.
u_int yes = 1;
int fd = socket(AF_LOCAL, SOCK_DGRAM, 0);
setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, &yes, sizeof(yes));
The patch you refer to was never applied.
You can't do multicast on AF_UNIX sockets, and at least on linux, SO_REUSEADDR doesn't have any meaning (it's not implemented) for AF_UNIX sockets.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With