I hope this is gonna be the last question i ask here,I don't wanna bother
you so much.
I'm trying to support multicast in IPv6 but i have some problems.
This is how i join a multicast group using IPv4:
The address of the multicast group is stored in: unsigned long mg;
The socket joining the group is stored in: socket ListenSock;
struct ip_mreq mreq;
mreq.imr_multiaddr.s_addr = mg;
mreq.imr_interface.s_addr=INADDR_ANY;
setsockopt(ListenSock,IPPROTO_IP,IP_ADD_MEMBERSHIP,(char
*)&mreq,sizeof(mreq));
This works ok in IPv4 but i am going to support IPv6, i have translated my
whole program using the new functions getaddrinfo() and getnameinfo().
However the struct ip_mreq seems to be very protocol dependant so i have no
idea how to change this (the last) part of the programm.
How should i do it????
Thanks,
Marcelo
_________________________________________________________________
MSN 8: advanced junk mail protection and 2 months FREE*.
http://join.msn.com/?page=features/junkmail
---------------------------------------------------------------------
The IPv6 Users Mailing List
Unsubscribe by sending "unsubscribe users" to [EMAIL PROTECTED]
- Re: protocol-independant joining a multicast group Marcelo Taube
- Re: protocol-independant joining a multicast group Brian Haberman
- Re: protocol-independant joining a multicast group Eva Castro Barbero
