def get_epoll_events(self):
        """
        Create a bit mask using ``EPOLL*`` family of constants.
        """
        epoll_events = 0
        if self & EVENT_READ:
            epoll_events |= select.EPOLLIN
        if self & EVENT_WRITE:
            epoll_events |= select.EPOLLOUT
        return epoll_events