Home | History | Annotate | Download | only in flip_server

Lines Matching defs: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.
450 static std::string EventMaskToString(int event_mask);
529 event_mask(0),
538 int event_mask,
540 : cb(cb), fd(fd), event_mask(event_mask), events_asserted(0),
559 // the current event_mask registered for this callback.
560 mutable int event_mask;
561 // the event_mask that was returned by epoll
563 // the event_mask for the ready list to use to call OnEvent.
602 // event_mask - the event mask (consisting of EPOLLIN, EPOLLOUT, etc
605 virtual void AddFD(int fd, int event_mask) const;
616 // event_mask - the event mask (consisting of EPOLLIN, EPOLLOUT, etc
619 virtual void ModFD(int fd, int event_mask) const;
634 // event_mask
635 // add_event - the events which are to be added to the current event_mask
786 void RecordEpollEvent(int fd, int event_mask) {
788 events_for_fd.AssignFromMask(event_mask);
875 void AssignFromMask(int event_mask) {
876 if (event_mask & EPOLLIN) ++epoll_in;
877 if (event_mask & EPOLLPRI) ++epoll_pri;
878 if (event_mask & EPOLLOUT) ++epoll_out;
879 if (event_mask & EPOLLRDNORM) ++epoll_rdnorm;
880 if (event_mask & EPOLLRDBAND) ++epoll_rdband;
881 if (event_mask & EPOLLWRNORM) ++epoll_wrnorm;
882 if (event_mask & EPOLLWRBAND) ++epoll_wrband;
883 if (event_mask & EPOLLMSG) ++epoll_msg;
884 if (event_mask & EPOLLERR) ++epoll_err;
885 if (event_mask & EPOLLHUP) ++epoll_hup;
886 if (event_mask & EPOLLONESHOT) ++epoll_oneshot;
887 if (event_mask & EPOLLET) ++epoll_et;