Suppose that I am pointing the flags EPOLLINand EPOLLOUTby adding monitoring descriptors using epoll_wait. From the "epoll" man pages it is not clear what exactly each of the structures epoll_eventreturned as part of the array carries to the field events. Citation:
the event member will contain the bit field of the returned event.
Does this mean that it is impossible to distinguish whether an event meaning "can-write" was triggered and not "can-read"? Basically there is an event mask, and I logically expect that the returned array will mean which events (events) "occurred" in the file descriptor?
source
share