C++/TCPSocket: Adjustment of poll/epoll"s event handler (POLLHUP, POLLRDHUP)