bool TCPAcceptor::OnEvent(struct epoll_event &event) { //we should not return false here, because the acceptor will simply go down. //Instead, after the connection accepting routine failed, check to //see if the acceptor socket is stil in the business if (!OnConnectionAvailable(event)) return IsAlive(); else return true; }
bool TCPAcceptor::OnEvent(select_event &event) { if (!OnConnectionAvailable(event)) return IsAlive(); else return true; }
bool UnixDomainSocketAcceptor::OnEvent(select_event &event) { if (!OnConnectionAvailable(event)) return IsAlive(); else return true; }