Cla*_*dio 5 unix sockets linux posix multicast
是否可以AF_UNIX SOCK_DGRAM在 Linux上的套接字上进行多播通信?
显然,一个补丁是在十多年前提出的。但是,我在 Internet 上找不到任何显示其使用情况的资源。以及以下简单的代码报告Operation not supported。
u_int yes = 1;
int fd = socket(AF_LOCAL, SOCK_DGRAM, 0);
setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, &yes, sizeof(yes));
Run Code Online (Sandbox Code Playgroud)