if I have set events conn_evÂ
event_set(entry->conn_ev, entry->connfd, EV_READ|EV_PERSIST, on_recv, event_arg);
event_base_set(base, entry->conn_ev);
event_add(entry->conn_ev, NULL)
after a number of triggers of this events, I want to make the event become:
event_set(entry->conn_ev, entry->connfd, EV_READ|EV_TIMEOUT, on_recv, event_arg);
that is I want conn_ev to change from EV_READ|EV_PERSIST to EV_READ|EV_TIMEOUT, what should I do?
thanks