/external/libevent/test/ |
D | bench_cascade.c | 63 static evutil_socket_t *pipes; 67 read_cb(evutil_socket_t fd, short which, void *arg) in read_cb() 70 evutil_socket_t sock = (evutil_socket_t)(ev_intptr_t)arg; in read_cb() 84 evutil_socket_t *cp; in run_once() 88 pipes = (evutil_socket_t *)calloc(num_pipes * 2, sizeof(evutil_socket_t)); in run_once() 110 evutil_socket_t fd = i < num_pipes - 1 ? cp[3] : -1; in run_once()
|
D | bench.c | 68 static evutil_socket_t *pipes; 74 read_cb(evutil_socket_t fd, short which, void *arg) in read_cb() 99 evutil_socket_t *cp, space; in run_once() 144 evutil_socket_t *cp; 179 pipes = calloc(num_pipes * 2, sizeof(evutil_socket_t));
|
D | regress_testutils.c | 74 evutil_socket_t dns_sock = -1; 78 regress_get_socket_port(evutil_socket_t fd) in regress_get_socket_port() 95 evutil_socket_t *psock, in regress_get_dnsserver() 100 evutil_socket_t sock; in regress_get_dnsserver() 229 evutil_socket_t s = evconnlistener_get_fd(lev); in regress_get_listener_addr()
|
D | regress.c | 80 evutil_socket_t pair[2]; 109 simple_read_cb(evutil_socket_t fd, short event, void *arg) in simple_read_cb() 128 basic_read_cb(evutil_socket_t fd, short event, void *data) in basic_read_cb() 162 dummy_read_cb(evutil_socket_t fd, short event, void *arg) in dummy_read_cb() 167 simple_write_cb(evutil_socket_t fd, short event, void *arg) in simple_write_cb() 179 multiple_write_cb(evutil_socket_t fd, short event, void *arg) in multiple_write_cb() 212 multiple_read_cb(evutil_socket_t fd, short event, void *arg) in multiple_read_cb() 234 timeout_cb(evutil_socket_t fd, short event, void *arg) in timeout_cb() 245 combined_read_cb(evutil_socket_t fd, short event, void *arg) in combined_read_cb() 263 combined_write_cb(evutil_socket_t fd, short event, void *arg) in combined_write_cb() [all …]
|
D | test-dumpevents.c | 52 callback1(evutil_socket_t fd, short events, void *arg) in callback1() 56 callback2(evutil_socket_t fd, short events, void *arg) in callback2() 72 evutil_socket_t pair1[2]; in main() 73 evutil_socket_t pair2[2]; in main()
|
D | regress_testutils.h | 43 evutil_socket_t *psock, 48 int regress_get_socket_port(evutil_socket_t fd);
|
D | regress_thread.c | 75 wake_all_timeout(evutil_socket_t fd, short what, void *arg) in wake_all_timeout() 85 wake_one_timeout(evutil_socket_t fd, short what, void *arg) in wake_one_timeout() 147 sigchld_cb(evutil_socket_t fd, short event, void *arg) in sigchld_cb() 160 notify_fd_cb(evutil_socket_t fd, short event, void *arg) in notify_fd_cb() 436 timer_callback(evutil_socket_t fd, short what, void *arg) in timer_callback() 442 start_threads_callback(evutil_socket_t fd, short what, void *arg) in start_threads_callback() 502 note_time_cb(evutil_socket_t fd, short what, void *arg) in note_time_cb()
|
/external/libevent/ |
D | evmap-internal.h | 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); 86 void evmap_signal_active_(struct event_base *base, evutil_socket_t signum, int ncalls); 91 void *evmap_io_get_fdinfo_(struct event_io_map *ctx, evutil_socket_t fd);
|
D | iocp-internal.h | 115 struct evbuffer *evbuffer_overlapped_new_(evutil_socket_t fd); 118 evutil_socket_t evbuffer_overlapped_get_fd_(struct evbuffer *buf); 120 void evbuffer_overlapped_set_fd_(struct evbuffer *buf, evutil_socket_t fd); 163 int event_iocp_port_associate_(struct event_iocp_port *port, evutil_socket_t fd, 189 evutil_socket_t fd, int options); 194 int bufferevent_async_connect_(struct bufferevent *bev, evutil_socket_t fd,
|
D | util-internal.h | 264 int evutil_socket_connect_(evutil_socket_t *fd_ptr, const struct sockaddr *sa, int socklen); 266 int evutil_socket_finished_connecting_(evutil_socket_t fd); 268 int evutil_ersatz_socketpair_(int, int , int, evutil_socket_t[]); 447 evutil_socket_t evutil_socket_(int domain, int type, int protocol); 448 evutil_socket_t evutil_accept4_(evutil_socket_t sockfd, struct sockaddr *addr, 453 int evutil_make_internal_pipe_(evutil_socket_t fd[2]); 454 evutil_socket_t evutil_eventfd_(unsigned initval, int flags);
|
D | listener.c | 71 evutil_socket_t (*getfd)(struct evconnlistener *); 95 evutil_socket_t fd; 111 evutil_socket_t fd); /* XXXX export this? */ 116 static evutil_socket_t event_listener_getfd(struct evconnlistener *); 153 static void listener_read_cb(evutil_socket_t, short, void *); 158 evutil_socket_t fd) in evconnlistener_new() 215 evutil_socket_t fd; in evconnlistener_new_bind() 327 evutil_socket_t 330 evutil_socket_t fd; in evconnlistener_get_fd() 337 static evutil_socket_t [all …]
|
D | evmap.c | 81 evutil_socket_t fd; 266 evmap_io_add_(struct event_base *base, evutil_socket_t fd, struct event *ev) in evmap_io_add_() 347 evmap_io_del_(struct event_base *base, evutil_socket_t fd, struct event *ev) in evmap_io_del_() 412 evmap_io_active_(struct event_base *base, evutil_socket_t fd, short events) in evmap_io_active_() 490 evmap_signal_active_(struct event_base *base, evutil_socket_t sig, int ncalls) in evmap_signal_active_() 507 evmap_io_get_fdinfo_(struct event_io_map *map, evutil_socket_t fd) in evmap_io_get_fdinfo_() 519 struct event_base *, evutil_socket_t, struct evmap_io *, void *); 539 evutil_socket_t fd; 596 evmap_io_reinit_iter_fn(struct event_base *base, evutil_socket_t fd, 667 evmap_io_delete_all_iter_fn(struct event_base *base, evutil_socket_t fd, [all …]
|
D | changelist-internal.h | 55 evutil_socket_t fd; 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,
|
D | signal.c | 91 static int evsig_add(struct event_base *, evutil_socket_t, short, short, void *); 92 static int evsig_del(struct event_base *, evutil_socket_t, short, short, void *); 112 static evutil_socket_t evsig_base_fd = -1; 131 evsig_cb(evutil_socket_t fd, short what, void *arg) in evsig_cb() 278 evsig_add(struct event_base *base, evutil_socket_t evsignal, short old, short events, void *p) in evsig_add() 361 evsig_del(struct event_base *base, evutil_socket_t evsignal, short old, short events, void *p) in evsig_del()
|
D | evutil.c | 197 evutil_socketpair(int family, int type, int protocol, evutil_socket_t fd[2]) in evutil_socketpair() 208 evutil_socket_t fd[2]) in evutil_ersatz_socketpair_() 222 evutil_socket_t listener = -1; in evutil_ersatz_socketpair_() 223 evutil_socket_t connector = -1; in evutil_ersatz_socketpair_() 224 evutil_socket_t acceptor = -1; in evutil_ersatz_socketpair_() 313 evutil_make_socket_nonblocking(evutil_socket_t fd) in evutil_make_socket_nonblocking() 346 evutil_fast_socket_nonblocking(evutil_socket_t fd) in evutil_fast_socket_nonblocking() 360 evutil_make_listen_socket_reuseable(evutil_socket_t sock) in evutil_make_listen_socket_reuseable() 375 evutil_make_listen_socket_reuseable_port(evutil_socket_t sock) in evutil_make_listen_socket_reuseable_port() 389 evutil_make_tcp_listen_socket_deferred(evutil_socket_t sock) in evutil_make_tcp_listen_socket_deferred() [all …]
|
D | bufferevent_async.c | 375 evutil_socket_t fd; in be_async_destruct() 384 if (fd != (evutil_socket_t)INVALID_SOCKET && in be_async_destruct() 397 evutil_socket_t fd; in bev_async_set_wsa_error() 416 evutil_socket_t sock; in connect_complete() 523 evutil_socket_t fd, int options) in bufferevent_async_new_() 603 bufferevent_async_connect_(struct bufferevent *bev, evutil_socket_t fd, in bufferevent_async_connect_() 671 evutil_socket_t fd = evbuffer_overlapped_get_fd_(bev->input); in be_async_ctrl() 672 if (fd != (evutil_socket_t)INVALID_SOCKET && in be_async_ctrl()
|
D | bufferevent_sock.c | 85 static void be_socket_setfd(struct bufferevent *, evutil_socket_t); 146 bufferevent_readcb(evutil_socket_t fd, short event, void *arg) in bufferevent_readcb() 228 bufferevent_writecb(evutil_socket_t fd, short event, void *arg) in bufferevent_writecb() 343 bufferevent_socket_new(struct event_base *base, evutil_socket_t fd, in bufferevent_socket_new() 385 evutil_socket_t fd; in bufferevent_socket_connect() 560 bufferevent_new(evutil_socket_t fd, in bufferevent_new() 609 evutil_socket_t fd; in be_socket_destruct() 629 be_socket_setfd(struct bufferevent *bufev, evutil_socket_t fd) in be_socket_setfd()
|
D | evsignal-internal.h | 30 #ifndef evutil_socket_t 43 evutil_socket_t ev_signal_pair[2];
|
D | event-internal.h | 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); 204 void (*cb)(evutil_socket_t, short, void *); 335 evutil_socket_t th_notify_fd[2];
|
/external/libevent/include/event2/ |
D | util.h | 310 #define evutil_socket_t intptr_t macro 312 #define evutil_socket_t int 392 int evutil_socketpair(int d, int type, int protocol, evutil_socket_t sv[2]); 399 int evutil_make_socket_nonblocking(evutil_socket_t sock); 413 int evutil_make_listen_socket_reuseable(evutil_socket_t sock); 426 int evutil_make_listen_socket_reuseable_port(evutil_socket_t sock); 435 int evutil_make_socket_closeonexec(evutil_socket_t sock); 444 int evutil_closesocket(evutil_socket_t sock); 459 int evutil_make_tcp_listen_socket_deferred(evutil_socket_t sock); 469 int evutil_socket_geterror(evutil_socket_t sock);
|
D | event_compat.h | 147 int event_once(evutil_socket_t , short, 148 void (*)(evutil_socket_t, short, void *), void *, const struct timeval *); 184 void event_set(struct event *, evutil_socket_t, short, void (*)(evutil_socket_t, short, void *), vo…
|
D | event.h | 1004 typedef void (*event_callback_fn)(evutil_socket_t, short, void *); 1080 struct event *event_new(struct event_base *, evutil_socket_t, short, event_callback_fn, void *); 1122 int event_assign(struct event *, struct event_base *, evutil_socket_t, short, event_callback_fn, vo… 1206 int event_base_once(struct event_base *, evutil_socket_t, short, event_callback_fn, void *, const s… 1349 evutil_socket_t event_get_fd(const struct event *ev); 1391 struct event_base **base_out, evutil_socket_t *fd_out, short *events_out, 1576 void event_base_active_by_fd(struct event_base *base, evutil_socket_t fd, short events);
|
D | listener.h | 50 typedef void (*evconnlistener_cb)(struct evconnlistener *, evutil_socket_t, struct sockaddr *, int … 121 evutil_socket_t fd); 163 evutil_socket_t evconnlistener_get_fd(struct evconnlistener *lev);
|
/external/libevent/sample/ |
D | hello-world.c | 32 static void listener_cb(struct evconnlistener *, evutil_socket_t, 36 static void signal_cb(evutil_socket_t, short, void *); 89 listener_cb(struct evconnlistener *listener, evutil_socket_t fd, in listener_cb() 133 signal_cb(evutil_socket_t sig, short events, void *user_data) in signal_cb()
|
D | event-read-fifo.c | 34 fifo_read(evutil_socket_t fd, short event, void *arg) in fifo_read() 77 signal_cb(evutil_socket_t fd, short event, void *arg) in signal_cb() 137 evfifo = event_new(base, (evutil_socket_t)socket, EV_READ|EV_PERSIST, fifo_read, in main()
|