EuNET Multicast parameter
- Posted by elias Oct 23, 2008
- 963 views
This is the syntax for a C IP_ADD_MEMBERSHIP
imreq.imr_multiaddr.s_addr = inet_addr("224.0.0.1"); imreq.imr_interface.s_addr = INADDR_ANY; use DEFAULT interface
JOIN multicast group on default interface status = setsockopt(sock, IPPROTO_IP, IP_ADD_MEMBERSHIP, (const void *)&imreq, sizeof(struct ip_mreq));
What is the syntax for the EuNet IP_ADD_MEMBERSHIP
eunet_set_socket_options(atom socket, integer level, integer optname, object val)
eunet_set_socket_options(socket, IPROTO_IP, IP_ADD_MEMBERSHIP, object val)
What are the perameters for <object val> ??? Thanks,
Elias