• Home
  • Raw
  • Download

Lines Matching refs:bev2

128 	struct bufferevent *bev1 = NULL, *bev2 = NULL;  in test_bufferevent_impl()  local
137 bev2 = pair[1]; in test_bufferevent_impl()
139 bufferevent_setcb(bev2, readcb, writecb, errorcb, NULL); in test_bufferevent_impl()
142 tt_ptr_op(bufferevent_pair_get_partner(bev1), ==, bev2); in test_bufferevent_impl()
143 tt_ptr_op(bufferevent_pair_get_partner(bev2), ==, bev1); in test_bufferevent_impl()
146 bev2 = bufferevent_new(pair[1], readcb, writecb, errorcb, NULL); in test_bufferevent_impl()
150 tt_ptr_op(bufferevent_pair_get_partner(bev2), ==, NULL); in test_bufferevent_impl()
166 bufferevent_enable(bev2, EV_READ); in test_bufferevent_impl()
169 tt_int_op(bufferevent_get_enabled(bev2), ==, EV_WRITE|EV_READ); in test_bufferevent_impl()
181 bufferevent_free(bev2); in test_bufferevent_impl()
395 struct bufferevent *bev1 = NULL, *bev2 = NULL; in test_bufferevent_watermarks_impl() local
405 bev2 = pair[1]; in test_bufferevent_watermarks_impl()
407 bufferevent_setcb(bev2, wm_readcb, NULL, errorcb, NULL); in test_bufferevent_watermarks_impl()
410 bev2 = bufferevent_new(pair[1], wm_readcb, NULL, wm_errorcb, NULL); in test_bufferevent_watermarks_impl()
413 tt_assert(bev2); in test_bufferevent_watermarks_impl()
415 bufferevent_enable(bev2, EV_READ); in test_bufferevent_watermarks_impl()
420 bufferevent_getwatermark(bev2, EV_WRITE, &low, NULL); in test_bufferevent_watermarks_impl()
427 bufferevent_setwatermark(bev2, EV_READ, 10, 20); in test_bufferevent_watermarks_impl()
429 bufferevent_getwatermark(bev2, EV_READ, &low, &high); in test_bufferevent_watermarks_impl()
454 tt_assert(!event_pending(&bev2->ev_write, EV_WRITE, NULL)); in test_bufferevent_watermarks_impl()
459 if (bev2) in test_bufferevent_watermarks_impl()
460 bufferevent_free(bev2); in test_bufferevent_watermarks_impl()
539 struct bufferevent *bev1 = NULL, *bev2 = NULL; in test_bufferevent_filters_impl() local
550 bev2 = pair[1]; in test_bufferevent_filters_impl()
553 bev2 = bufferevent_socket_new(NULL, pair[1], 0); in test_bufferevent_filters_impl()
556 bev2_base = bev2; in test_bufferevent_filters_impl()
565 bev2 = bufferevent_filter_new(bev2, bufferevent_input_filter, in test_bufferevent_filters_impl()
568 bufferevent_setcb(bev2, readcb, NULL, errorcb, NULL); in test_bufferevent_filters_impl()
571 tt_ptr_op(bufferevent_get_underlying(bev2), ==, bev2_base); in test_bufferevent_filters_impl()
573 tt_int_op(bufferevent_getfd(bev2), ==, -1); in test_bufferevent_filters_impl()
576 bufferevent_enable(bev2, EV_READ); in test_bufferevent_filters_impl()
588 if (bev2) in test_bufferevent_filters_impl()
589 bufferevent_free(bev2); in test_bufferevent_filters_impl()
717 struct bufferevent *bev1=NULL, *bev2=NULL; in test_bufferevent_connect() local
763 bev2 = bufferevent_socket_new(data->base, -1, be_flags); in test_bufferevent_connect()
765 tt_assert(bev2); in test_bufferevent_connect()
767 bufferevent_setcb(bev2, reader_readcb,NULL, reader_eventcb, data->base); in test_bufferevent_connect()
770 bufferevent_enable(bev2, EV_READ); in test_bufferevent_connect()
773 tt_want(!bufferevent_socket_connect(bev2, sa, sizeof(localhost))); in test_bufferevent_connect()
786 if (bev2) in test_bufferevent_connect()
787 bufferevent_free(bev2); in test_bufferevent_connect()
945 struct bufferevent *bev1 = NULL, *bev2 = NULL; in test_bufferevent_timeouts() local
964 bev2 = p[1]; in test_bufferevent_timeouts()
967 bev2 = bufferevent_socket_new(data->base, data->pair[1], 0); in test_bufferevent_timeouts()
971 tt_assert(bev2); in test_bufferevent_timeouts()
977 bevf2 = bufferevent_filter_new(bev2, NULL, NULL, in test_bufferevent_timeouts()
982 bev2 = bevf2; in test_bufferevent_timeouts()
986 bufferevent_disable(bev2, EV_READ); in test_bufferevent_timeouts()
1016 bufferevent_setcb(bev2, NULL, bev_timeout_write_cb, in test_bufferevent_timeouts()
1021 bufferevent_set_timeouts(bev2, &tv_r, &tv_w); in test_bufferevent_timeouts()
1022 bufferevent_enable(bev2, EV_WRITE); in test_bufferevent_timeouts()
1045 if (bev2) in test_bufferevent_timeouts()
1046 bufferevent_free(bev2); in test_bufferevent_timeouts()
1206 struct bufferevent *bev2 = NULL; in test_bufferevent_pair_flush() local
1211 bev2 = pair[1]; in test_bufferevent_pair_flush()
1213 tt_assert(0 == bufferevent_enable(bev2, EV_READ)); in test_bufferevent_pair_flush()
1215 bufferevent_setcb(bev2, NULL, NULL, pair_flush_eventcb, &callback_what); in test_bufferevent_pair_flush()
1226 if (bev2) in test_bufferevent_pair_flush()
1227 bufferevent_free(bev2); in test_bufferevent_pair_flush()