Fixed TCPServerSocket::isListening() on Windows.
This commit is contained in:
parent
41618310e4
commit
781bad3c8e
@ -105,7 +105,7 @@ public:
|
|||||||
return StreamError::UNKNOWN_ERROR;
|
return StreamError::UNKNOWN_ERROR;
|
||||||
}
|
}
|
||||||
void close() MIJIN_NOEXCEPT;
|
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;
|
Task<StreamResult<std::unique_ptr<TCPSocket>>> c_waitForConnection() MIJIN_NOEXCEPT;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user