Closed sandin closed 2 years ago
redefining errno is bad practice, you should never ever do that.
you should put WSAGetLastError() to proper spots in code instead
Yes there are a few ideas here: https://github.com/libimobiledevice/libimobiledevice-glue/issues/14
On windows, errno will not be set when socket send failed, see https://docs.microsoft.com/en-us/windows/win32/winsock/error-codes-errno-h-errno-and-wsagetlasterror-2