I have a fd:
socket(AF_INET6, SOCK_STREAM, ...)
bind(fd, ...)
listen(fd, ...)
And I have a epoll
instance. I need to know, what events should I subscribe to via epoll_ctl
? I need Edge Triggered mode.
I have those flags atm: EPOLLET | EPOLLIN
Should I subscribe to EPOLLRDHUP
, EPOLLOUT
, EPOLLPRI
?
Should I handle EPOLLHUP
, EPOLLERR
? Why they can occur?