Lines Matching full:underlying
272 to an underlying bufferevent using a BIO_bufferevent, and one that has the
288 If we were set up with an underlying bufferevent, we use the
293 /* An underlying bufferevent that we're directing our output to.
295 struct bufferevent *underlying; member
379 /* Have the base communications channel (either the underlying bufferevent or
385 if (bev_ssl->underlying) { in start_reading()
386 bufferevent_unsuspend_read_(bev_ssl->underlying, in start_reading()
400 /* Have the base communications channel (either the underlying bufferevent or
407 if (bev_ssl->underlying) { in start_writing()
409 bufferevent_unsuspend_read_(bev_ssl->underlying, in start_writing()
427 if (bev_ssl->underlying) { in stop_reading()
428 bufferevent_suspend_read_(bev_ssl->underlying, in stop_reading()
441 if (bev_ssl->underlying) { in stop_writing()
442 bufferevent_unsuspend_read_(bev_ssl->underlying, in stop_writing()
453 if (!bev_ssl->underlying) in set_rbow()
462 if (!bev_ssl->underlying) in set_wbor()
621 /* Can't read until underlying has more data. */ in do_read()
628 * underlying is full */ in do_read()
644 if (bev_ssl->underlying) in do_read()
699 /* Can't read until underlying has more data. */ in do_write()
707 * underlying is full */ in do_write()
724 if (bev_ssl->underlying) in do_write()
781 * Read from the underlying buffer until we block or we hit our high-water
825 * by reading too much data from the underlying bufferevent; in consider_reading()
826 * it can potentially cause read looping if the underlying in consider_reading()
831 * potentially not read any more from bev_ssl->underlying in consider_reading()
835 if (!n_to_read && bev_ssl->underlying) in consider_reading()
845 if (!bev_ssl->underlying) { in consider_reading()
874 if (bev_ssl->underlying) { in consider_writing()
875 target = bev_ssl->underlying->output; in consider_writing()
876 wm = &bev_ssl->underlying->wm_write; in consider_writing()
892 if (!bev_ssl->underlying) { in consider_writing()
973 if (!bev_ssl->underlying) { in be_openssl_auto_fd()
985 if (bev_ssl->underlying) { in set_open_callbacks()
986 bufferevent_setcb(bev_ssl->underlying, in set_open_callbacks()
1086 if (bev_ssl->underlying) { in set_handshake_callbacks()
1087 bufferevent_setcb(bev_ssl->underlying, in set_handshake_callbacks()
1095 if (bufferevent_setfd(bev_ssl->underlying, fd)) in set_handshake_callbacks()
1130 if (!bev_ssl->underlying) in bufferevent_ssl_renegotiate()
1148 if (bev_ssl->underlying) in be_openssl_outbuf_cb()
1167 if (bev_ssl->underlying) { in be_openssl_enable()
1191 if (bev_ssl->underlying) { in be_openssl_disable()
1206 if (bev_ssl->underlying) { in be_openssl_unlink()
1207 if (BEV_UPCAST(bev_ssl->underlying)->refcnt < 2) { in be_openssl_unlink()
1211 bufferevent_free(bev_ssl->underlying); in be_openssl_unlink()
1214 // bev_ssl->underlying = NULL; in be_openssl_unlink()
1218 if (bev_ssl->underlying) { in be_openssl_unlink()
1219 if (bev_ssl->underlying->errorcb == be_openssl_eventcb) in be_openssl_unlink()
1220 bufferevent_setcb(bev_ssl->underlying, in be_openssl_unlink()
1222 bufferevent_unsuspend_read_(bev_ssl->underlying, in be_openssl_unlink()
1234 if (! bev_ssl->underlying) { in be_openssl_destruct()
1251 if (bev_ssl->underlying) { in be_openssl_adj_timeouts()
1305 if (!bev_ssl->underlying) { in be_openssl_ctrl()
1311 if (!(bio = BIO_new_bufferevent(bev_ssl->underlying))) in be_openssl_ctrl()
1318 if (bev_ssl->underlying) { in be_openssl_ctrl()
1319 data->fd = event_get_fd(&bev_ssl->underlying->ev_read); in be_openssl_ctrl()
1325 data->ptr = bev_ssl->underlying; in be_openssl_ctrl()
1344 struct bufferevent *underlying, in bufferevent_openssl_new_impl() argument
1355 if (underlying != NULL && fd >= 0) in bufferevent_openssl_new_impl()
1371 bev_ssl->underlying = underlying; in bufferevent_openssl_new_impl()
1380 if (underlying) { in bufferevent_openssl_new_impl()
1382 bufferevent_incref_(underlying); in bufferevent_openssl_new_impl()
1394 if (underlying) { in bufferevent_openssl_new_impl()
1395 bufferevent_setwatermark(underlying, EV_READ, 0, 0); in bufferevent_openssl_new_impl()
1396 bufferevent_enable(underlying, EV_READ|EV_WRITE); in bufferevent_openssl_new_impl()
1398 bufferevent_suspend_read_(underlying, in bufferevent_openssl_new_impl()
1415 struct bufferevent *underlying, in bufferevent_openssl_filter_new() argument
1423 if (!underlying) in bufferevent_openssl_filter_new()
1425 if (!(bio = BIO_new_bufferevent(underlying))) in bufferevent_openssl_filter_new()
1431 base, underlying, -1, ssl, state, options); in bufferevent_openssl_filter_new()