Fixed TCPServerSocket::isListening() on Windows.
This commit is contained in:
@@ -105,7 +105,7 @@ public:
|
||||
return StreamError::UNKNOWN_ERROR;
|
||||
}
|
||||
void close() MIJIN_NOEXCEPT;
|
||||
[[nodiscard]] bool isListening() const MIJIN_NOEXCEPT { return handle_ >= 0; }
|
||||
[[nodiscard]] bool isListening() const MIJIN_NOEXCEPT { return handle_ != INVALID_SOCKET_HANDLE; }
|
||||
|
||||
Task<StreamResult<std::unique_ptr<TCPSocket>>> c_waitForConnection() MIJIN_NOEXCEPT;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user