/external/libevent/ |
D | bufferevent.c | 67 bufferevent_suspend_read_(struct bufferevent *bufev, bufferevent_suspend_flags what) in bufferevent_suspend_read_() argument 70 EVUTIL_UPCAST(bufev, struct bufferevent_private, bev); in bufferevent_suspend_read_() 71 BEV_LOCK(bufev); in bufferevent_suspend_read_() 73 bufev->be_ops->disable(bufev, EV_READ); in bufferevent_suspend_read_() 75 BEV_UNLOCK(bufev); in bufferevent_suspend_read_() 79 bufferevent_unsuspend_read_(struct bufferevent *bufev, bufferevent_suspend_flags what) in bufferevent_unsuspend_read_() argument 82 EVUTIL_UPCAST(bufev, struct bufferevent_private, bev); in bufferevent_unsuspend_read_() 83 BEV_LOCK(bufev); in bufferevent_unsuspend_read_() 85 if (!bufev_private->read_suspended && (bufev->enabled & EV_READ)) in bufferevent_unsuspend_read_() 86 bufev->be_ops->enable(bufev, EV_READ); in bufferevent_unsuspend_read_() [all …]
|
D | bufferevent_sock.c | 129 struct bufferevent *bufev = arg; in bufferevent_socket_outbuf_cb() local 131 EVUTIL_UPCAST(bufev, struct bufferevent_private, bev); in bufferevent_socket_outbuf_cb() 134 (bufev->enabled & EV_WRITE) && in bufferevent_socket_outbuf_cb() 135 !event_pending(&bufev->ev_write, EV_WRITE, NULL) && in bufferevent_socket_outbuf_cb() 139 if (bufferevent_add_event_(&bufev->ev_write, &bufev->timeout_write) == -1) { in bufferevent_socket_outbuf_cb() 148 struct bufferevent *bufev = arg; in bufferevent_readcb() local 150 EVUTIL_UPCAST(bufev, struct bufferevent_private, bev); in bufferevent_readcb() 156 bufferevent_incref_and_lock_(bufev); in bufferevent_readcb() 166 input = bufev->input; in bufferevent_readcb() 172 if (bufev->wm_read.high != 0) { in bufferevent_readcb() [all …]
|
D | bufferevent-internal.h | 321 void bufferevent_suspend_read_(struct bufferevent *bufev, bufferevent_suspend_flags what); 324 void bufferevent_unsuspend_read_(struct bufferevent *bufev, bufferevent_suspend_flags what); 328 void bufferevent_suspend_write_(struct bufferevent *bufev, bufferevent_suspend_flags what); 331 void bufferevent_unsuspend_write_(struct bufferevent *bufev, bufferevent_suspend_flags what); 350 int bufferevent_disable_hard_(struct bufferevent *bufev, short event); 354 int bufferevent_enable_locking_(struct bufferevent *bufev, void *lock); 357 #define bufferevent_incref_(bufev) bufferevent_incref(bufev) argument 360 void bufferevent_incref_and_lock_(struct bufferevent *bufev); 364 #define bufferevent_decref_(bufev) bufferevent_decref(bufev) argument 368 int bufferevent_decref_and_unlock_(struct bufferevent *bufev); [all …]
|
D | bufferevent_pair.c | 96 struct bufferevent_pair *bufev; in bufferevent_pair_elt_new() local 97 if (! (bufev = mm_calloc(1, sizeof(struct bufferevent_pair)))) in bufferevent_pair_elt_new() 99 if (bufferevent_init_common_(&bufev->bev, base, &bufferevent_ops_pair, in bufferevent_pair_elt_new() 101 mm_free(bufev); in bufferevent_pair_elt_new() 104 if (!evbuffer_add_cb(bufev->bev.bev.output, be_pair_outbuf_cb, bufev)) { in bufferevent_pair_elt_new() 105 bufferevent_free(downcast(bufev)); in bufferevent_pair_elt_new() 109 bufferevent_init_generic_timeout_cbs_(&bufev->bev.bev); in bufferevent_pair_elt_new() 111 return bufev; in bufferevent_pair_elt_new() 225 be_pair_enable(struct bufferevent *bufev, short events) in be_pair_enable() argument 227 struct bufferevent_pair *bev_p = upcast(bufev); in be_pair_enable() [all …]
|
D | bufferevent_filter.c | 70 static int be_filter_flush(struct bufferevent *bufev, 150 struct bufferevent *bufev = downcast(bevf); in be_readbuf_full() local 152 bufev->wm_read.high && in be_readbuf_full() 153 evbuffer_get_length(bufev->input) >= bufev->wm_read.high; in be_readbuf_full() 347 struct bufferevent *bufev = downcast(bevf); in be_filter_process_output() local 356 if (!(bufev->enabled & EV_WRITE) || in be_filter_process_output() 358 !evbuffer_get_length(bufev->output)) in be_filter_process_output() 364 evbuffer_cb_clear_flags(bufev->output, bevf->outbuf_cb, in be_filter_process_output() 389 (bufev->enabled & EV_WRITE) && in be_filter_process_output() 392 evbuffer_get_length(bufev->output) && in be_filter_process_output() [all …]
|
D | http.c | 198 static void evhttp_error_cb(struct bufferevent *bufev, short what, void *arg); 373 bufferevent_setcb(evcon->bufev, in evhttp_write_buffer() 379 bufferevent_enable(evcon->bufev, EV_WRITE); in evhttp_write_buffer() 385 bufferevent_disable(evcon->bufev, EV_WRITE); in evhttp_send_continue_done() 392 bufferevent_enable(evcon->bufev, EV_WRITE); in evhttp_send_continue() 393 evbuffer_add_printf(bufferevent_get_output(evcon->bufev), in evhttp_send_continue() 398 bufferevent_setcb(evcon->bufev, in evhttp_send_continue() 441 evbuffer_add_printf(bufferevent_get_output(evcon->bufev), in evhttp_make_header_request() 523 evbuffer_add_printf(bufferevent_get_output(evcon->bufev), in evhttp_make_header_response() 597 struct evbuffer *output = bufferevent_get_output(evcon->bufev); in evhttp_make_header() [all …]
|
D | bufferevent_openssl.c | 162 struct bufferevent *bufev = BIO_get_data(b); in bio_bufferevent_write() local 171 output = bufferevent_get_output(bufev); in bio_bufferevent_write() 176 if (bufev->wm_write.high && bufev->wm_write.high <= (outlen+inlen)) { in bio_bufferevent_write() 177 if (bufev->wm_write.high <= outlen) { in bio_bufferevent_write() 182 inlen = bufev->wm_write.high - outlen; in bio_bufferevent_write() 194 struct bufferevent *bufev = BIO_get_data(b); in bio_bufferevent_ctrl() local 205 ret = evbuffer_get_length(bufferevent_get_input(bufev)) != 0; in bio_bufferevent_ctrl() 208 ret = evbuffer_get_length(bufferevent_get_output(bufev)) != 0; in bio_bufferevent_ctrl() 335 static int be_openssl_flush(struct bufferevent *bufev, 1255 be_openssl_flush(struct bufferevent *bufev, in be_openssl_flush() argument [all …]
|
D | http-internal.h | 60 struct bufferevent *bufev; member
|
/external/libevent/include/event2/ |
D | bufferevent.h | 268 int bufferevent_base_set(struct event_base *base, struct bufferevent *bufev); 286 int bufferevent_priority_set(struct bufferevent *bufev, int pri); 294 int bufferevent_get_priority(const struct bufferevent *bufev); 305 void bufferevent_free(struct bufferevent *bufev); 323 void bufferevent_setcb(struct bufferevent *bufev, 342 void bufferevent_getcb(struct bufferevent *bufev, 356 int bufferevent_setfd(struct bufferevent *bufev, evutil_socket_t fd); 363 evutil_socket_t bufferevent_getfd(struct bufferevent *bufev); 370 struct bufferevent *bufferevent_get_underlying(struct bufferevent *bufev); 386 int bufferevent_write(struct bufferevent *bufev, [all …]
|
D | bufferevent_compat.h | 86 void bufferevent_settimeout(struct bufferevent *bufev,
|
D | bufferevent_ssl.h | 118 bufferevent_openssl_get_ssl(struct bufferevent *bufev);
|
/external/libevent/test/ |
D | regress_http.c | 1414 struct bufferevent *bufev = NULL; in http_cancel_test() local 1471 bufev = evhttp_connection_get_bufferevent(evcon); in http_cancel_test() 1475 evbuffer_add_cb(bufferevent_get_output(bufev), http_no_write, NULL); in http_cancel_test() 1547 if (bufev) in http_cancel_test() 1548 evbuffer_remove_cb(bufferevent_get_output(bufev), http_no_write, NULL); in http_cancel_test()
|