Home
last modified time | relevance | path

Searched refs:event_base (Results 1 – 25 of 97) sorted by relevance

1234

/external/libevent/include/event2/
Devent.h217 struct event_base struct
344 struct event_base *event_base_new(void);
357 int event_reinit(struct event_base *base);
373 int event_base_dispatch(struct event_base *);
382 const char *event_base_get_method(const struct event_base *);
403 int event_gettime_monotonic(struct event_base *base, struct timeval *tp);
441 int event_base_get_num_events(struct event_base *, unsigned int);
454 int event_base_get_max_events(struct event_base *, unsigned int, int);
584 int event_base_get_features(const struct event_base *base);
678 struct event_base *event_base_new_with_config(const struct event_config *);
[all …]
Dlistener.h131 struct evconnlistener *evconnlistener_new(struct event_base *base,
150 struct evconnlistener *evconnlistener_new_bind(struct event_base *base,
171 struct event_base *evconnlistener_get_base(struct evconnlistener *lev);
Dbufferevent.h118 struct event_base;
190 struct bufferevent *bufferevent_socket_new(struct event_base *base, evutil_socket_t fd, int options…
268 int bufferevent_base_set(struct event_base *base, struct bufferevent *bufev);
274 struct event_base *bufferevent_get_base(struct bufferevent *bev);
741 int bufferevent_pair_new(struct event_base *base, int options,
830 struct event_base *base,
/external/libevent/
Devent-internal.h94 void *(*init)(struct event_base *);
103 int (*add)(struct event_base *, evutil_socket_t fd, short old, short events, void *fdinfo);
105 int (*del)(struct event_base *, evutil_socket_t fd, short old, short events, void *fdinfo);
111 int (*dispatch)(struct event_base *, struct timeval *);
113 void (*dealloc)(struct event_base *);
173 struct event_base *base;
208 struct event_base { struct
340 int (*th_notify_fn)(struct event_base *base); argument
404 int evsig_set_handler_(struct event_base *base, int evsignal,
406 int evsig_restore_handler_(struct event_base *base, int evsignal);
[all …]
Devmap-internal.h37 struct event_base;
62 int evmap_io_add_(struct event_base *base, evutil_socket_t fd, struct event *ev);
71 int evmap_io_del_(struct event_base *base, evutil_socket_t fd, struct event *ev);
78 void evmap_io_active_(struct event_base *base, evutil_socket_t fd, short events);
84 int evmap_signal_add_(struct event_base *base, int signum, struct event *ev);
85 int evmap_signal_del_(struct event_base *base, int signum, struct event *ev);
86 void evmap_signal_active_(struct event_base *base, evutil_socket_t signum, int ncalls);
96 int evmap_reinit_(struct event_base *base);
101 void evmap_delete_all_(struct event_base *base);
106 void evmap_check_integrity_(struct event_base *base);
[all …]
Devent.c130 struct event_base *event_global_current_base_ = NULL;
138 static void event_queue_insert_active(struct event_base *, struct event_callback *);
139 static void event_queue_insert_active_later(struct event_base *, struct event_callback *);
140 static void event_queue_insert_timeout(struct event_base *, struct event *);
141 static void event_queue_insert_inserted(struct event_base *, struct event *);
142 static void event_queue_remove_active(struct event_base *, struct event_callback *);
143 static void event_queue_remove_active_later(struct event_base *, struct event_callback *);
144 static void event_queue_remove_timeout(struct event_base *, struct event *);
145 static void event_queue_remove_inserted(struct event_base *, struct event *);
146 static void event_queue_make_later_events_active(struct event_base *base);
[all …]
Ddevpoll.c64 static void *devpoll_init(struct event_base *);
65 static int devpoll_add(struct event_base *, int fd, short old, short events, void *);
66 static int devpoll_del(struct event_base *, int fd, short old, short events, void *);
67 static int devpoll_dispatch(struct event_base *, struct timeval *);
68 static void devpoll_dealloc(struct event_base *);
121 devpoll_init(struct event_base *base) in devpoll_init()
168 devpoll_dispatch(struct event_base *base, struct timeval *tv) in devpoll_dispatch()
228 devpoll_add(struct event_base *base, int fd, short old, short events, void *p) in devpoll_add()
254 devpoll_del(struct event_base *base, int fd, short old, short events, void *p) in devpoll_del()
295 devpoll_dealloc(struct event_base *base) in devpoll_dealloc()
Devmap.c273 evmap_io_add_(struct event_base *base, evutil_socket_t fd, struct event *ev) in evmap_io_add_()
354 evmap_io_del_(struct event_base *base, evutil_socket_t fd, struct event *ev) in evmap_io_del_()
420 evmap_io_active_(struct event_base *base, evutil_socket_t fd, short events) in evmap_io_active_()
450 evmap_signal_add_(struct event_base *base, int sig, struct event *ev) in evmap_signal_add_()
479 evmap_signal_del_(struct event_base *base, int sig, struct event *ev) in evmap_signal_del_()
501 evmap_signal_active_(struct event_base *base, evutil_socket_t sig, int ncalls) in evmap_signal_active_()
530 struct event_base *, evutil_socket_t, struct evmap_io *, void *);
546 evmap_io_foreach_fd(struct event_base *base,
572 struct event_base *, int, struct evmap_signal *, void *);
585 evmap_signal_foreach_signal(struct event_base *base,
[all …]
Dselect.c88 static void *select_init(struct event_base *);
89 static int select_add(struct event_base *, int, short old, short events, void*);
90 static int select_del(struct event_base *, int, short old, short events, void*);
91 static int select_dispatch(struct event_base *, struct timeval *);
92 static void select_dealloc(struct event_base *);
110 select_init(struct event_base *base) in select_init()
140 select_dispatch(struct event_base *base, struct timeval *tv) in select_dispatch()
252 select_add(struct event_base *base, int fd, short old, short events, void *p) in select_add()
299 select_del(struct event_base *base, int fd, short old, short events, void *p) in select_del()
339 select_dealloc(struct event_base *base) in select_dealloc()
Dpoll.c69 static void *poll_init(struct event_base *);
70 static int poll_add(struct event_base *, int, short old, short events, void *idx);
71 static int poll_del(struct event_base *, int, short old, short events, void *idx);
72 static int poll_dispatch(struct event_base *, struct timeval *);
73 static void poll_dealloc(struct event_base *);
88 poll_init(struct event_base *base) in poll_init()
125 poll_dispatch(struct event_base *base, struct timeval *tv) in poll_dispatch()
217 poll_add(struct event_base *base, int fd, short old, short events, void *idx_) in poll_add()
278 poll_del(struct event_base *base, int fd, short old, short events, void *idx_) in poll_del()
327 poll_dealloc(struct event_base *base) in poll_dealloc()
Devport.c117 static void* evport_init(struct event_base *);
118 static int evport_add(struct event_base *, int fd, short old, short events, void *);
119 static int evport_del(struct event_base *, int fd, short old, short events, void *);
120 static int evport_dispatch(struct event_base *, struct timeval *);
121 static void evport_dealloc(struct event_base *);
141 evport_init(struct event_base *base) in evport_init()
256 evport_dispatch(struct event_base *base, struct timeval *tv) in evport_dispatch()
379 evport_add(struct event_base *base, int fd, short old, short events, void *p) in evport_add()
396 evport_del(struct event_base *base, int fd, short old, short events, void *p) in evport_del()
435 evport_dealloc(struct event_base *base) in evport_dealloc()
Depoll.c95 static void *epoll_init(struct event_base *);
96 static int epoll_dispatch(struct event_base *, struct timeval *);
97 static void epoll_dealloc(struct event_base *);
112 static int epoll_nochangelist_add(struct event_base *base, evutil_socket_t fd,
114 static int epoll_nochangelist_del(struct event_base *base, evutil_socket_t fd,
141 epoll_init(struct event_base *base) in epoll_init()
267 epoll_apply_one_change(struct event_base *base, in epoll_apply_one_change()
356 epoll_apply_changes(struct event_base *base) in epoll_apply_changes()
375 epoll_nochangelist_add(struct event_base *base, evutil_socket_t fd, in epoll_nochangelist_add()
396 epoll_nochangelist_del(struct event_base *base, evutil_socket_t fd, in epoll_nochangelist_del()
[all …]
Dkqueue.c87 static void *kq_init(struct event_base *);
88 static int kq_sig_add(struct event_base *, int, short, short, void *);
89 static int kq_sig_del(struct event_base *, int, short, short, void *);
90 static int kq_dispatch(struct event_base *, struct timeval *);
91 static void kq_dealloc(struct event_base *);
118 kq_init(struct event_base *base) in kq_init()
264 kq_dispatch(struct event_base *base, struct timeval *tv) in kq_dispatch()
442 kq_dealloc(struct event_base *base) in kq_dealloc()
451 kq_sig_add(struct event_base *base, int nsignal, short old, short events, void *p) in kq_sig_add()
484 kq_sig_del(struct event_base *base, int nsignal, short old, short events, void *p) in kq_sig_del()
[all …]
Dsignal.c93 static int evsig_add(struct event_base *, evutil_socket_t, short, short, void *);
94 static int evsig_del(struct event_base *, evutil_socket_t, short, short, void *);
111 static struct event_base *evsig_base = NULL;
122 evsig_set_base_(struct event_base *base) in evsig_set_base_()
139 struct event_base *base; in evsig_cb()
176 evsig_init_(struct event_base *base) in evsig_init_()
214 evsig_set_handler_(struct event_base *base, in evsig_set_handler_()
280 evsig_add(struct event_base *base, evutil_socket_t evsignal, short old, short events, void *p) in evsig_add()
326 evsig_restore_handler_(struct event_base *base, int evsignal) in evsig_restore_handler_()
363 evsig_del(struct event_base *base, evutil_socket_t evsignal, short old, short events, void *p) in evsig_del()
[all …]
Dwin32select.c83 static void *win32_init(struct event_base *);
84 static int win32_add(struct event_base *, evutil_socket_t, short old, short events, void *idx_);
85 static int win32_del(struct event_base *, evutil_socket_t, short old, short events, void *idx_);
86 static int win32_dispatch(struct event_base *base, struct timeval *);
87 static void win32_dealloc(struct event_base *);
148 do_fd_clear(struct event_base *base, in do_fd_clear()
181 win32_init(struct event_base *base) in win32_init()
220 win32_add(struct event_base *base, evutil_socket_t fd, in win32_add()
245 win32_del(struct event_base *base, evutil_socket_t fd, short old, short events, in win32_del()
280 win32_dispatch(struct event_base *base, struct timeval *tv) in win32_dispatch()
[all …]
Dlistener.c73 struct event_base *(*getbase)(struct evconnlistener *);
97 struct event_base *event_base; member
110 evconnlistener_new_async(struct event_base *base,
118 static struct event_base *event_listener_getbase(struct evconnlistener *);
157 evconnlistener_new(struct event_base *base, in evconnlistener_new()
211 evconnlistener_new_bind(struct event_base *base, evconnlistener_cb cb, in evconnlistener_new_bind()
351 struct event_base *
354 struct event_base *base; in evconnlistener_get_base()
361 static struct event_base *
483 event_base_add_virtual_(lev->event_base); in iocp_listener_event_add()
[all …]
Diocp-internal.h190 struct event_base;
193 struct event_iocp_port *event_base_get_iocp_(struct event_base *base);
197 int event_base_start_iocp_(struct event_base *base, int n_cpus);
198 void event_base_stop_iocp_(struct event_base *base);
202 struct bufferevent *bufferevent_async_new_(struct event_base *base,
Devsignal-internal.h59 int evsig_init_(struct event_base *);
60 void evsig_dealloc_(struct event_base *);
62 void evsig_set_base_(struct event_base *base);
Dchangelist-internal.h91 struct event_base *base);
96 int event_changelist_add_(struct event_base *base, evutil_socket_t fd, short old, short events,
99 int event_changelist_del_(struct event_base *base, evutil_socket_t fd, short old, short events,
Dhttp-internal.h48 struct event_base;
102 struct event_base *base;
168 struct bufferevent* (*bevcb)(struct event_base *, void *);
171 struct event_base *base;
Dkqueue-internal.h32 int event_kq_notify_base_(struct event_base *base);
37 int event_kq_add_notify_event_(struct event_base *base);
Ddefer-internal.h59 void event_deferred_cb_cancel_(struct event_base *, struct event_callback *);
66 int event_deferred_cb_schedule_(struct event_base *, struct event_callback *);
/external/libevent/sample/
Ddns-example.c163 struct event_base *event_base = NULL; in main() local
193 event_base = event_base_new(); in main()
194 evdns_base = evdns_base_new(event_base, EVDNS_BASE_DISABLE_WHEN_INACTIVE); in main()
213 evdns_add_server_port_with_base(event_base, sock, 0, evdns_server_callback, NULL); in main()
259 event_base_dispatch(event_base); in main()
261 event_base_free(event_base); in main()
Dhello-world.c41 struct event_base *base; in main()
92 struct event_base *base = user_data; in listener_cb()
135 struct event_base *base = user_data; in signal_cb()
/external/libevent/test/
Dtest-fdleak.c65 static void start_client(struct event_base *base);
111 struct event_base *base = evconnlistener_get_base(listener); in listener_accept_cb()
122 struct event_base *base; in start_loop()
176 struct event_base *base = bufferevent_get_base(bev); in client_read_cb()
208 start_client(struct event_base *base) in start_client()

1234