Network/SocketPoller: Wait() now returns the number of active sockets, and optionally the last error
It will also ignore the EINTR error on Linux
This commit is contained in:
@@ -31,7 +31,7 @@ namespace Nz
|
||||
bool RegisterSocket(AbstractSocket& socket, SocketPollEventFlags eventFlags);
|
||||
void UnregisterSocket(AbstractSocket& socket);
|
||||
|
||||
bool Wait(int msTimeout);
|
||||
unsigned int Wait(int msTimeout, SocketError* error = nullptr);
|
||||
|
||||
SocketPoller& operator=(SocketPoller&&) noexcept = default;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user