HRaws
New Contributor
7 years agoHow to setup multicast with nichestack
I am trying to setup multicast messaging using the nichestack. My issue is when I try to call setsockopt to add membership, the processor appears to be restarting. No error is returned to indicate what may be the issue. I am using a static IP.
if(setsockopt(socket, IPPROTO_IP, IP_ADD_MEMBERSHIP, (char *)&group, sizeof(group)) < 0)
{
perror("Error adding multicast group..\n");
close(server_socket);
exit(1);
}