18 const char*
what() const noexcept
override {
return _message.c_str(); }
const char * what() const noexcept override
Get the error message.
ListenerException(const std::string &message)
Construct exception with error message.
The server's listening socket.
Listener & operator=(const Listener &)=delete
Listener(const Listener &)=delete
int fd() const
The listening socket fd (to register in poll()).
int accept() const
Accept one pending client; returns its new socket fd.