This one breaks on non-windows, at least on Android. I know because I tried exactly the same thing :) SOCKET isn't defined there.