Hi,

the two fields in a struct ip_mreq are the ip address of the group you
want to join (i.e. multicast address) being imr_multiaddr and the
ip address of the interface upon which you want to listen being
imr_interface. I believe that it is possible to specify INADDR_ANY
for the interface which just listens on the local interface.

I hope this is of help,

Steve.

Siddharth Srivastava wrote:
> 
> 
> hi all,
>      i have a question regarding the ip_mreq structure for multicast
> sockets.The structure has a field called :interface:.I am unable to male
> out the meaning of that field.How is it to be specified? does it refer to
> one of the interfaces like eth0,eth1 etc? Or is it that the ip addr like
> xxx.xxx.xxx.xxx has to specified.
> What is the action, once the field has been specified?
> 
> waiting eagerly for any feedback.
> Thanx.
> 
> 
> -
> To unsubscribe from this list: send the line "unsubscribe linux-net" in
> the body of a message to [EMAIL PROTECTED]
> 

-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]

Reply via email to