Listening to several multicast groups

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

While doing tests on IP multicast, it appears that subscribing to more
than one multicast group does not work as expected:
Joining a first group with
	setsockopt(li_socket, IPPROTO_IP, IP_ADD_MEMBERSHIP, &li_mreq,
sizeof(li_mreq));
is ok, messages are received.

But when joining a second group
	setsockopt(li_socket2, IPPROTO_IP, IP_ADD_MEMBERSHIP, &li_mreq2,
sizeof(li_mreq2));
messages of first multicast group are not received anymore.

Thank you for any help
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux