Re: sending and receiving ipv6 multicasts



Kai Timmer wrote:
I am trying to send and receive packages via an ipv6 multicast. But I
can't get it working. What I thought was, that on the listener site, I
just need to bind my socket to the interfaces ipv6 local link address
and on the sender site, to the multicast address (in my case ff02::).
That doesn't work :)

On the receiving side, you also need to set the IPV6_JOIN_GROUP
socket option - else your kernel doesn't know you are interested in
packets for that address. You need to bind to the multicast port,
and optionally to the multicast address.

On the sending side, you just use sendto, passing the multicast
address as the recipient.

HTH,
Martin
.



Relevant Pages

  • Re: Question for multicast
    ... I am implementing multicast on Windows server 2003. ... bind to a specific multicast address when created a socket. ...
    (microsoft.public.win32.programmer.networks)
  • Re: Question for multicast
    ... I am implementing multicast on Windows server 2003. ... bind to a specific multicast address when created a socket. ...
    (microsoft.public.win32.programmer.networks)
  • Re: Question for multicast
    ... I am implementing multicast on Windows server 2003. ... bind to a specific multicast address when created a socket. ... (If you only want to /send/ multicast there's no need to set any socket option (do a join etc)). ... what if I need listen to more than one multicast group? ...
    (microsoft.public.win32.programmer.networks)
  • How to use ReceiveFrom to capture multicast data
    ... The MSDN says that I have to bind the socket on a local address to use ... ReceiveFrom function. ... How can I bind the socket on a multicast address ...
    (microsoft.public.dotnet.languages.csharp)
  • Using ReceiveFrom To Capture Multicast Data
    ... The MSDN says that I have to bind the socket on a local address to use ... ReceiveFrom function. ... How can I bind the socket on a multicast address ...
    (microsoft.public.dotnet.languages.csharp)