예제 #1
0
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;
}
예제 #2
0
bool TCPAcceptor::OnEvent(select_event &event) {
	if (!OnConnectionAvailable(event))
		return IsAlive();
	else
		return true;
}
예제 #3
0
bool UnixDomainSocketAcceptor::OnEvent(select_event &event) {
  if (!OnConnectionAvailable(event))
    return IsAlive();
  else
    return true;
}