hhromic / libe131

libE131: a lightweight C/C++ library for the E1.31 (sACN) protocol
Apache License 2.0
76 stars 19 forks source link

Add Windows support #9

Closed CalcProgrammer1 closed 4 years ago

CalcProgrammer1 commented 4 years ago

The Windows implementation (WinSock2) is slightly different from the Unix implementation. I used the _WIN32 flag to add compile-time branches for Windows. I've tested sending to multicast ESPixelStick devices from both Windows and Linux with my changes.

hhromic commented 4 years ago

Thanks for the contribution! Looks good to me. Will merge!

I plan to move from autotools to CMake at some point so appreciate your work for supporting Windows.