I tried the Network.Multicast package, but it works, however I cannot find a way to specify the local communication interface ("bond0" or "bond1", etc.) in the multicast socket. I know that in C I need to use ioctl to convert the connection to struct sockaddr_in, and then pass this structure to the IP_MULTICAST_IF parameter in the IPPROTO_IP setsockopt family, but I'm not sure how to do this in Haskell. Can anyone help with this? Thank!
source
share