Home | History | Annotate | Download | only in flip_server

Lines Matching refs:event_mask

69   //   event_mask - the event mask (composed of EPOLLIN, EPOLLOUT, etc)
72 virtual void OnRegistration(EpollServer* eps, int fd, int event_mask) = 0;
75 // Called when the event_mask is modified (for a file-descriptor)
78 // event_mask - the event mask (composed of EPOLLIN, EPOLLOUT, etc)
81 virtual void OnModification(int fd, int event_mask) = 0;
145 // in the set of events included in event_mask occurs on the
163 // event_mask - a combination of (EPOLLOUT, EPOLLIN.. etc) indicating
166 virtual void RegisterFD(int fd, CB* cb, int event_mask);
214 // the old event_mask with the new one specified here.
219 // event_mask - the new event mask.
220 virtual void ModifyCallback(int fd, int event_mask);
272 // and event_mask 'event_mask'
279 // this function with an fd and event_mask is equivalent (as far
285 // event_mask - a bitmask representing the events which have occured
289 void HandleEvent(int fd, int event_mask);
329 // when OnEvent() is invoked by the ready list. Hence, the event_mask
332 // SetFDReady() is called again for that fd with a different event_mask,
333 // the event_mask will be updated.
445 static std::string EventMaskToString(int event_mask);
521 event_mask(0),
530 int event_mask,
532 : cb(cb), fd(fd), event_mask(event_mask), events_asserted(0),
551 // the current event_mask registered for this callback.
552 mutable int event_mask;
553 // the event_mask that was returned by epoll
555 // the event_mask for the ready list to use to call OnEvent.
594 // event_mask - the event mask (consisting of EPOLLIN, EPOLLOUT, etc
597 virtual void AddFD(int fd, int event_mask) const;
608 // event_mask - the event mask (consisting of EPOLLIN, EPOLLOUT, etc
611 virtual void ModFD(int fd, int event_mask) const;
626 // event_mask
627 // add_event - the events which are to be added to the current event_mask
778 void RecordEpollEvent(int fd, int event_mask) {
780 events_for_fd.AssignFromMask(event_mask);
867 void AssignFromMask(int event_mask) {
868 if (event_mask & EPOLLIN) ++epoll_in;
869 if (event_mask & EPOLLPRI) ++epoll_pri;
870 if (event_mask & EPOLLOUT) ++epoll_out;
871 if (event_mask & EPOLLRDNORM) ++epoll_rdnorm;
872 if (event_mask & EPOLLRDBAND) ++epoll_rdband;
873 if (event_mask & EPOLLWRNORM) ++epoll_wrnorm;
874 if (event_mask & EPOLLWRBAND) ++epoll_wrband;
875 if (event_mask & EPOLLMSG) ++epoll_msg;
876 if (event_mask & EPOLLERR) ++epoll_err;
877 if (event_mask & EPOLLHUP) ++epoll_hup;
878 if (event_mask & EPOLLONESHOT) ++epoll_oneshot;
879 if (event_mask & EPOLLET) ++epoll_et;