/external/libevent/include/event2/ |
D | bufferevent.h | 113 struct bufferevent struct 135 typedef void (*bufferevent_data_cb)(struct bufferevent *bev, void *ctx); 154 typedef void (*bufferevent_event_cb)(struct bufferevent *bev, short what, void *ctx); 190 struct bufferevent *bufferevent_socket_new(struct event_base *base, evutil_socket_t fd, int options… 212 int bufferevent_socket_connect(struct bufferevent *, const struct sockaddr *, int); 242 int bufferevent_socket_connect_hostname(struct bufferevent *, 254 int bufferevent_socket_get_dns_error(struct bufferevent *bev); 268 int bufferevent_base_set(struct event_base *base, struct bufferevent *bufev); 274 struct event_base *bufferevent_get_base(struct bufferevent *bev); 286 int bufferevent_priority_set(struct bufferevent *bufev, int pri); [all …]
|
D | bufferevent_ssl.h | 68 struct bufferevent * 70 struct bufferevent *underlying, 86 struct bufferevent * 110 int bufferevent_openssl_get_allow_dirty_shutdown(struct bufferevent *bev); 112 void bufferevent_openssl_set_allow_dirty_shutdown(struct bufferevent *bev, 118 bufferevent_openssl_get_ssl(struct bufferevent *bufev); 122 int bufferevent_ssl_renegotiate(struct bufferevent *bev); 126 unsigned long bufferevent_get_openssl_error(struct bufferevent *bev);
|
D | bufferevent_compat.h | 78 struct bufferevent *bufferevent_new(evutil_socket_t fd, 90 void bufferevent_settimeout(struct bufferevent *bufev,
|
D | http.h | 41 struct bufferevent; 299 struct bufferevent *(*cb)(struct event_base *, void *), void *arg); 525 …struct event_base *base, struct evdns_base *dnsbase, struct bufferevent* bev, const char *address,… 531 struct bufferevent* evhttp_connection_get_bufferevent(struct evhttp_connection *evcon);
|
/external/libevent/ |
D | bufferevent-internal.h | 156 struct bufferevent bev; 272 int (*enable)(struct bufferevent *, short); 278 int (*disable)(struct bufferevent *, short); 282 void (*unlink)(struct bufferevent *); 288 void (*destruct)(struct bufferevent *); 291 int (*adj_timeouts)(struct bufferevent *); 294 int (*flush)(struct bufferevent *, short, enum bufferevent_flush_mode); 297 int (*ctrl)(struct bufferevent *, enum bufferevent_ctrl_op, union bufferevent_ctrl_data *); 330 void bufferevent_suspend_read_(struct bufferevent *bufev, bufferevent_suspend_flags what); 334 void bufferevent_unsuspend_read_(struct bufferevent *bufev, bufferevent_suspend_flags what); [all …]
|
D | bufferevent.c | 63 static void bufferevent_cancel_all_(struct bufferevent *bev); 67 bufferevent_suspend_read_(struct bufferevent *bufev, bufferevent_suspend_flags what) in bufferevent_suspend_read_() 78 bufferevent_unsuspend_read_(struct bufferevent *bufev, bufferevent_suspend_flags what) in bufferevent_unsuspend_read_() 89 bufferevent_suspend_write_(struct bufferevent *bufev, bufferevent_suspend_flags what) in bufferevent_suspend_write_() 100 bufferevent_unsuspend_write_(struct bufferevent *bufev, bufferevent_suspend_flags what) in bufferevent_unsuspend_write_() 121 static void bufferevent_inbuf_wm_check(struct bufferevent *bev) in bufferevent_inbuf_wm_check() 140 struct bufferevent *bufev = arg; in bufferevent_inbuf_wm_cb() 155 struct bufferevent *bufev = &bufev_private->bev; in bufferevent_run_deferred_callbacks_locked() 189 struct bufferevent *bufev = &bufev_private->bev; in bufferevent_run_deferred_callbacks_unlocked() 241 bufferevent_run_readcb_(struct bufferevent *bufev, int options) in bufferevent_run_readcb_() [all …]
|
D | bufferevent_filter.c | 62 static int be_filter_enable(struct bufferevent *, short); 63 static int be_filter_disable(struct bufferevent *, short); 64 static void be_filter_unlink(struct bufferevent *); 65 static void be_filter_destruct(struct bufferevent *); 67 static void be_filter_readcb(struct bufferevent *, void *); 68 static void be_filter_writecb(struct bufferevent *, void *); 69 static void be_filter_eventcb(struct bufferevent *, short, void *); 70 static int be_filter_flush(struct bufferevent *bufev, 72 static int be_filter_ctrl(struct bufferevent *, enum bufferevent_ctrl_op, union bufferevent_ctrl_da… 84 struct bufferevent *underlying; [all …]
|
D | bufferevent_async.c | 74 static int be_async_enable(struct bufferevent *, short); 75 static int be_async_disable(struct bufferevent *, short); 76 static void be_async_destruct(struct bufferevent *); 77 static int be_async_flush(struct bufferevent *, short, enum bufferevent_flush_mode); 78 static int be_async_ctrl(struct bufferevent *, enum bufferevent_ctrl_op, union bufferevent_ctrl_dat… 105 be_async_run_eventcb(struct bufferevent *bev, short what, int options) in be_async_run_eventcb() 109 be_async_trigger_nolock(struct bufferevent *bev, short what, int options) in be_async_trigger_nolock() 126 upcast(struct bufferevent *bev) in upcast() 165 struct bufferevent *bev = &beva->bev.bev; in bev_async_del_write() 176 struct bufferevent *bev = &beva->bev.bev; in bev_async_del_read() [all …]
|
D | bufferevent_sock.c | 79 static int be_socket_enable(struct bufferevent *, short); 80 static int be_socket_disable(struct bufferevent *, short); 81 static void be_socket_destruct(struct bufferevent *); 82 static int be_socket_flush(struct bufferevent *, short, enum bufferevent_flush_mode); 83 static int be_socket_ctrl(struct bufferevent *, enum bufferevent_ctrl_op, union bufferevent_ctrl_da… 85 static void be_socket_setfd(struct bufferevent *, evutil_socket_t); 100 bufferevent_socket_get_conn_address_(struct bufferevent *bev) in bufferevent_socket_get_conn_address_() 107 bufferevent_socket_set_conn_address_fd_(struct bufferevent *bev, in bufferevent_socket_set_conn_address_fd_() 120 bufferevent_socket_set_conn_address_(struct bufferevent *bev, in bufferevent_socket_set_conn_address_() 133 struct bufferevent *bufev = arg; in bufferevent_socket_outbuf_cb() [all …]
|
D | bufferevent_openssl.c | 161 struct bufferevent *bufev = BIO_get_data(b); in bio_bufferevent_write() 193 struct bufferevent *bufev = BIO_get_data(b); in bio_bufferevent_ctrl() 253 BIO_new_bufferevent(struct bufferevent *bufferevent) in BIO_new_bufferevent() argument 256 if (!bufferevent) in BIO_new_bufferevent() 261 BIO_set_data(result, bufferevent); in BIO_new_bufferevent() 295 struct bufferevent *underlying; 331 static int be_openssl_enable(struct bufferevent *, short); 332 static int be_openssl_disable(struct bufferevent *, short); 333 static void be_openssl_unlink(struct bufferevent *); 334 static void be_openssl_destruct(struct bufferevent *); [all …]
|
D | bufferevent_pair.c | 56 upcast(struct bufferevent *bev) in upcast() 69 incref_and_lock(struct bufferevent *b) in incref_and_lock() 79 decref_and_unlock(struct bufferevent *b) in decref_and_unlock() 116 struct bufferevent *pair[2]) in bufferevent_pair_new() 153 be_pair_transfer(struct bufferevent *src, struct bufferevent *dst, in be_pair_transfer() 225 be_pair_enable(struct bufferevent *bufev, short events) in be_pair_enable() 253 be_pair_disable(struct bufferevent *bev, short events) in be_pair_disable() 265 be_pair_unlink(struct bufferevent *bev) in be_pair_unlink() 278 be_pair_destruct(struct bufferevent *bev) in be_pair_destruct() 305 be_pair_flush(struct bufferevent *bev, short iotype, in be_pair_flush() [all …]
|
D | iocp-internal.h | 202 struct bufferevent *bufferevent_async_new_(struct event_base *base, 206 void bufferevent_async_set_connected_(struct bufferevent *bev); 207 int bufferevent_async_can_connect_(struct bufferevent *bev); 208 int bufferevent_async_connect_(struct bufferevent *bev, evutil_socket_t fd,
|
D | bufferevent_ratelim.c | 560 bufferevent_set_rate_limit(struct bufferevent *bev, in bufferevent_set_rate_limit() 735 bufferevent_add_to_rate_limit_group(struct bufferevent *bev, in bufferevent_add_to_rate_limit_group() 781 bufferevent_remove_from_rate_limit_group(struct bufferevent *bev) in bufferevent_remove_from_rate_limit_group() 787 bufferevent_remove_from_rate_limit_group_internal_(struct bufferevent *bev, in bufferevent_remove_from_rate_limit_group_internal_() 819 bufferevent_get_read_limit(struct bufferevent *bev) in bufferevent_get_read_limit() 838 bufferevent_get_write_limit(struct bufferevent *bev) in bufferevent_get_write_limit() 855 bufferevent_set_max_single_read(struct bufferevent *bev, size_t size) in bufferevent_set_max_single_read() 869 bufferevent_set_max_single_write(struct bufferevent *bev, size_t size) in bufferevent_set_max_single_write() 883 bufferevent_get_max_single_read(struct bufferevent *bev) in bufferevent_get_max_single_read() 894 bufferevent_get_max_single_write(struct bufferevent *bev) in bufferevent_get_max_single_write() [all …]
|
D | evbuffer-internal.h | 78 struct bufferevent; 155 struct bufferevent *parent; 338 void evbuffer_set_parent_(struct evbuffer *buf, struct bufferevent *bev);
|
D | http-internal.h | 57 struct bufferevent *bufev; 168 struct bufferevent* (*bevcb)(struct event_base *, void *);
|
/external/libevent/test/ |
D | regress_bufferevent.c | 105 readcb(struct bufferevent *bev, void *arg) in readcb() 125 writecb(struct bufferevent *bev, void *arg) in writecb() 133 errorcb(struct bufferevent *bev, short what, void *arg) in errorcb() 141 struct bufferevent *bev1 = NULL, *bev2 = NULL; in test_bufferevent_impl() 147 struct bufferevent *pair[2]; in test_bufferevent_impl() 349 struct bufferevent *pair[2]; in test_bufferevent_pair_release_lock() 367 wm_readcb(struct bufferevent *bev, void *arg) in wm_readcb() 390 wm_writecb(struct bufferevent *bev, void *arg) in wm_writecb() 400 wm_errorcb(struct bufferevent *bev, short what, void *arg) in wm_errorcb() 408 struct bufferevent *bev1 = NULL, *bev2 = NULL; in test_bufferevent_watermarks_impl() [all …]
|
D | test-fdleak.c | 82 server_read_cb(struct bufferevent *bev, void *ctx) in server_read_cb() 93 server_event_cb(struct bufferevent *bev, short events, void *ctx) in server_event_cb() 112 struct bufferevent *bev = bufferevent_socket_new(base, sock, in listener_accept_cb() 173 client_read_cb(struct bufferevent *bev, void *ctx) in client_read_cb() 193 client_event_cb(struct bufferevent *bev, short events, void *ctx) in client_event_cb() 210 struct bufferevent *bev = bufferevent_socket_new(base, -1, in start_client()
|
D | regress_ssl.c | 288 bufferevent_openssl_check_fd(struct bufferevent *bev, int filter) in bufferevent_openssl_check_fd() 302 bufferevent_openssl_check_freed(struct bufferevent *bev) in bufferevent_openssl_check_freed() 312 free_on_cb(struct bufferevent *bev, void *ctx) in free_on_cb() 319 respond_to_number(struct bufferevent *bev, void *ctx) in respond_to_number() 353 done_writing_cb(struct bufferevent *bev, void *ctx) in done_writing_cb() 364 eventcb(struct bufferevent *bev, short what, void *ctx) in eventcb() 428 open_ssl_bufevs(struct bufferevent **bev1_out, struct bufferevent **bev2_out, in open_ssl_bufevs() 430 evutil_socket_t *fd_pair, struct bufferevent **underlying_pair, in open_ssl_bufevs() 462 struct bufferevent *bev1, *bev2; in regress_bufferevent_openssl() 465 struct bufferevent *bev_ll[2] = { NULL, NULL }; in regress_bufferevent_openssl() [all …]
|
D | bench_httpclient.c | 69 static void readcb(struct bufferevent *b, void *arg); 70 static void errorcb(struct bufferevent *b, short what, void *arg); 73 readcb(struct bufferevent *b, void *arg) in readcb() 84 errorcb(struct bufferevent *b, short what, void *arg) in errorcb() 135 struct bufferevent *b; in launch_request()
|
D | test-ratelim.c | 121 struct bufferevent **bevs; 128 loud_writecb(struct bufferevent *bev, void *ctx) in loud_writecb() 142 discard_readcb(struct bufferevent *bev, void *ctx) in discard_readcb() 152 write_on_connectedcb(struct bufferevent *bev, short what, void *ctx) in write_on_connectedcb() 162 echo_readcb(struct bufferevent *bev, void *ctx) in echo_readcb() 173 echo_writecb(struct bufferevent *bev, void *ctx) in echo_writecb() 181 echo_eventcb(struct bufferevent *bev, short what, void *ctx) in echo_eventcb() 195 struct bufferevent *bev; in echo_listenercb() 217 struct bufferevent *bev = arg; in check_bucket_levels_cb() 428 bevs = calloc(cfg_n_connections, sizeof(struct bufferevent *)); in test_ratelimiting()
|
D | regress_zlib.c | 243 readcb(struct bufferevent *bev, void *arg) in readcb() 263 writecb(struct bufferevent *bev, void *arg) in writecb() 271 errorcb(struct bufferevent *bev, short what, void *arg) in errorcb() 279 struct bufferevent *bev1=NULL, *bev2=NULL; in test_bufferevent_zlib()
|
D | regress_http.c | 120 static struct bufferevent * 256 http_readcb(struct bufferevent *bev, void *arg) in http_readcb() 294 http_writecb(struct bufferevent *bev, void *arg) in http_writecb() 304 http_errorcb(struct bufferevent *bev, short what, void *arg) in http_errorcb() 463 static struct bufferevent * 467 struct bufferevent *bev = NULL; in create_bev() 475 struct bufferevent *underlying = in create_bev() 491 http_half_writecb(struct bufferevent *bev, void *arg) in http_half_writecb() 510 struct bufferevent *bev = NULL; in http_basic_test_impl() 631 http_badreq_errorcb(struct bufferevent *bev, short what, void *arg) in http_badreq_errorcb() [all …]
|
/external/libevent/sample/ |
D | le-proxy.c | 49 static void drained_writecb(struct bufferevent *bev, void *ctx); 50 static void eventcb(struct bufferevent *bev, short what, void *ctx); 53 readcb(struct bufferevent *bev, void *ctx) in readcb() 55 struct bufferevent *partner = ctx; in readcb() 80 drained_writecb(struct bufferevent *bev, void *ctx) in drained_writecb() 82 struct bufferevent *partner = ctx; in drained_writecb() 93 close_on_finished_writecb(struct bufferevent *bev, void *ctx) in close_on_finished_writecb() 103 eventcb(struct bufferevent *bev, short what, void *ctx) in eventcb() 105 struct bufferevent *partner = ctx; in eventcb() 162 struct bufferevent *b_out, *b_in; in accept_cb() [all …]
|
D | hello-world.c | 34 static void conn_writecb(struct bufferevent *, void *); 35 static void conn_eventcb(struct bufferevent *, short, void *); 92 struct bufferevent *bev; in listener_cb() 108 conn_writecb(struct bufferevent *bev, void *user_data) in conn_writecb() 118 conn_eventcb(struct bufferevent *bev, short events, void *user_data) in conn_eventcb()
|
D | https-client.c | 60 struct bufferevent *bev = (struct bufferevent *) ctx; in http_request_done() 230 struct bufferevent *bev; in main()
|