net/SocketError: add syscall specific check functions
Fixes Windows compatibility.
This commit is contained in:
@@ -36,7 +36,7 @@ BufferedSocket::DirectRead(void *data, size_t length) noexcept
|
||||
}
|
||||
|
||||
const auto code = GetSocketError();
|
||||
if (IsSocketErrorAgain(code))
|
||||
if (IsSocketErrorReceiveWouldBlock(code))
|
||||
return 0;
|
||||
|
||||
if (IsSocketErrorClosed(code))
|
||||
|
Reference in New Issue
Block a user