event/ServerSocket: add method IsEmpty()

This commit is contained in:
Max Kellermann 2018-07-15 21:35:14 +02:00
parent 1d30df9b15
commit 56bfff5a57

View File

@ -109,6 +109,10 @@ public:
*/ */
void AddFD(int fd); void AddFD(int fd);
bool IsEmpty() const noexcept {
return sockets.empty();
}
/** /**
* Throws #std::runtime_error on error. * Throws #std::runtime_error on error.
*/ */