On Sun, 10 Jun 2007, Praveen wrote: > Hi, > I am using the send program from this example: > http://ntrg.cs.tcd.ie/undergrad/4ba2/multicast/antony/example.html#sender > > The only modification is the use of setsockopt() to > set the interface from which I want to send the > packet. > The setsockopt() succeeds but sendto() fails with > "host is down" message. Any clues?. > The program works fine on a Linux machine.
The test program doesn't set sin_len. Try adding "addr.sin_len = sizeof(addr);". Also ensure that you have set up multicast on your host. Some notes are in /etc/netstart. -d