Listening to several multicast groups

From: Fabien Ribes (fabien.ribes@cgey.com)
Date: Mon Jul 30 2001 - 07:02:44 EST


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
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org



This archive was generated by hypermail 2b29 : Tue Jul 31 2001 - 21:01:01 EST