haskell-socket icon indicating copy to clipboard operation
haskell-socket copied to clipboard

Add API for joining/leaving multicast groups

Open sdroege opened this issue 9 years ago • 2 comments

See summary, ideally this should also allow defining which interface should be used

Thanks for working on this library :)

sdroege avatar Jun 17 '15 18:06 sdroege

I have no experience with that specific topic, but I think it deserves its place in this library as this is a very general mechanism. I'll leave this open for later or until someone else volunteers to implement this.

lpeterse avatar Jun 17 '15 18:06 lpeterse

According to @illdefined this is done via the following sockopts:

  • IP_ADD_MEMBERSHIP (IPPROTO_IP)
  • IP_DROP_MEMBERSHIP
  • IPV6_ADD_MEMBERSHIP, IPV6_DROP_MEMBERSHIP (IPPROTO_IPV6)

lpeterse avatar Jun 26 '15 15:06 lpeterse