event/ServerSocket: add method IsEmpty()
This commit is contained in:
parent
1d30df9b15
commit
56bfff5a57
@ -109,6 +109,10 @@ public:
|
||||
*/
|
||||
void AddFD(int fd);
|
||||
|
||||
bool IsEmpty() const noexcept {
|
||||
return sockets.empty();
|
||||
}
|
||||
|
||||
/**
|
||||
* Throws #std::runtime_error on error.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user