audreyt / network-multicast

[Haskell] The "Network.Multicast" module is for sending UDP datagrams over multicast (class D) addresses.
http://github.com/audreyt/network-multicast
Other
23 stars 12 forks source link

Fix WSAEADDRNOTAVAIL error on Windows platform #13

Closed NCrashed closed 8 years ago

NCrashed commented 8 years ago

Hi,

The PR fixes #12 and haskell-distributed/distributed-process-simplelocalnet#18 .

On Windows platform one should bind multicast socket to INADDR_ANY or particular network interface address. An attempt to use multicast host as socket address raises WSAEADDRNOTAVAIL error.

The PR uses the INADDR_ANY approach as good enough. Binding to network interface requires additional dependencies on, for instance, network-info package, but behaves identically as proposed fix.

Tested on: Windows 7 x86_64 and Fedora 23 x86_64.

audreyt commented 8 years ago

Released as 0.0.12 on hackage. Thank you! 🌈

NCrashed commented 8 years ago

Thank you! However 0.1.0 is also affected by the bug.

audreyt commented 8 years ago

Thanks! Re-released as 0.1.1.