Home
last modified time | relevance | path

Searched refs:bev1 (Results 1 – 8 of 8) sorted by relevance

/netbsd/external/bsd/ntp/dist/sntp/libevent/test/
H A Dregress_bufferevent.c137 bev1 = pair[0]; in test_bufferevent_impl()
139 bufferevent_setcb(bev1, readcb, writecb, errorcb, bev1); in test_bufferevent_impl()
393 bev1 = pair[0]; in test_bufferevent_watermarks_impl()
401 tt_assert(bev1); in test_bufferevent_watermarks_impl()
446 if (bev1) in test_bufferevent_watermarks_impl()
522 bev1 = pair[0]; in test_bufferevent_filters_impl()
558 if (bev1) in test_bufferevent_filters_impl()
724 if (bev1) in test_bufferevent_connect()
876 bev1 = p[0]; in test_bufferevent_timeouts()
894 bev1 = bevf1; in test_bufferevent_timeouts()
[all …]
H A Dregress_zlib.c281 struct bufferevent *bev1=NULL, *bev2=NULL; in test_bufferevent_zlib() local
298 bev1 = bufferevent_socket_new(NULL, pair[0], 0); in test_bufferevent_zlib()
309 bev1 = bufferevent_filter_new(bev1, NULL, zlib_output_filter, in test_bufferevent_zlib()
313 bufferevent_setcb(bev1, readcb, writecb, errorcb, NULL); in test_bufferevent_zlib()
316 bufferevent_disable(bev1, EV_READ); in test_bufferevent_zlib()
317 bufferevent_enable(bev1, EV_WRITE); in test_bufferevent_zlib()
325 bufferevent_write(bev1, buffer, 1800); in test_bufferevent_zlib()
326 bufferevent_write(bev1, buffer + 1800, sizeof(buffer) - 1800); in test_bufferevent_zlib()
329 bufferevent_flush(bev1, EV_WRITE, BEV_FINISHED); in test_bufferevent_zlib()
341 if (bev1) in test_bufferevent_zlib()
[all …]
H A Dregress_ssl.c305 struct bufferevent *bev1, *bev2; in regress_bufferevent_openssl() local
349 open_ssl_bufevs(&bev1, &bev2, data->base, 0, flags, ssl1, ssl2, in regress_bufferevent_openssl()
353 tt_int_op(bufferevent_getfd(bev1), ==, data->pair[0]); in regress_bufferevent_openssl()
355 tt_ptr_op(bufferevent_get_underlying(bev1), ==, bev_ll[0]); in regress_bufferevent_openssl()
366 bufferevent_free(bev1); in regress_bufferevent_openssl()
368 bev1 = bev2 = NULL; in regress_bufferevent_openssl()
369 open_ssl_bufevs(&bev1, &bev2, data->base, 1, flags, ssl1, ssl2, in regress_bufferevent_openssl()
373 bufferevent_enable(bev1, EV_READ|EV_WRITE); in regress_bufferevent_openssl()
376 evbuffer_add_printf(bufferevent_get_output(bev1), "1\n"); in regress_bufferevent_openssl()
H A Dregress_http.c863 struct bufferevent *bev1, *bev2, *bev3; in http_allowed_methods_test() local
881 bev1 = bufferevent_socket_new(data->base, fd1, 0); in http_allowed_methods_test()
882 bufferevent_enable(bev1, EV_READ|EV_WRITE); in http_allowed_methods_test()
883 bufferevent_setcb(bev1, NULL, NULL, in http_allowed_methods_test()
892 bufferevent_write(bev1, http_request, strlen(http_request)); in http_allowed_methods_test()
932 bufferevent_free(bev1); in http_allowed_methods_test()
/netbsd/external/bsd/libevent/dist/test/
H A Dregress_bufferevent.c153 bev1 = xpair[0]; in test_bufferevent_impl()
155 bufferevent_setcb(bev1, readcb, writecb, errorcb, bev1); in test_bufferevent_impl()
429 tt_assert(bev1); in test_bufferevent_watermarks_impl()
474 if (bev1) in test_bufferevent_watermarks_impl()
603 if (bev1) in test_bufferevent_filters_impl()
781 tt_assert(bev1); in test_bufferevent_connect()
800 if (bev1) in test_bufferevent_connect()
1000 bev1 = p[0]; in test_bufferevent_timeouts()
1017 bev1 = bevf1; in test_bufferevent_timeouts()
1074 if (bev1) in test_bufferevent_timeouts()
[all …]
H A Dregress_zlib.c282 struct bufferevent *bev1=NULL, *bev2=NULL; in test_bufferevent_zlib() local
299 bev1 = bufferevent_socket_new(NULL, xpair[0], 0); in test_bufferevent_zlib()
310 bev1 = bufferevent_filter_new(bev1, NULL, zlib_output_filter, in test_bufferevent_zlib()
314 bufferevent_setcb(bev1, readcb, writecb, errorcb, NULL); in test_bufferevent_zlib()
317 bufferevent_disable(bev1, EV_READ); in test_bufferevent_zlib()
318 bufferevent_enable(bev1, EV_WRITE); in test_bufferevent_zlib()
326 bufferevent_write(bev1, buffer, 1800); in test_bufferevent_zlib()
327 bufferevent_write(bev1, buffer + 1800, sizeof(buffer) - 1800); in test_bufferevent_zlib()
330 bufferevent_flush(bev1, EV_WRITE, BEV_FINISHED); in test_bufferevent_zlib()
342 if (bev1) in test_bufferevent_zlib()
[all …]
H A Dregress_ssl.c464 struct bufferevent *bev1, *bev2; in regress_bufferevent_openssl() local
502 open_ssl_bufevs(&bev1, &bev2, data->base, 0, flags, ssl1, ssl2, in regress_bufferevent_openssl()
506 tt_fd_op(bufferevent_getfd(bev1), ==, data->pair[0]); in regress_bufferevent_openssl()
508 tt_ptr_op(bufferevent_get_underlying(bev1), ==, bev_ll[0]); in regress_bufferevent_openssl()
519 bufferevent_free(bev1); in regress_bufferevent_openssl()
521 bev1 = bev2 = NULL; in regress_bufferevent_openssl()
527 bufferevent_enable(bev1, EV_READ|EV_WRITE); in regress_bufferevent_openssl()
531 evbuffer_add_printf(bufferevent_get_output(bev1), "1\n"); in regress_bufferevent_openssl()
549 bufferevent_enable(bev1, EV_READ|EV_WRITE); in regress_bufferevent_openssl()
552 bufferevent_set_timeouts(bev1, &t, &t); in regress_bufferevent_openssl()
[all …]
H A Dregress_http.c959 struct bufferevent *bev1, *bev2, *bev3; in http_allowed_methods_test() local
976 bev1 = bufferevent_socket_new(data->base, fd1, 0); in http_allowed_methods_test()
977 bufferevent_enable(bev1, EV_READ|EV_WRITE); in http_allowed_methods_test()
978 bufferevent_setcb(bev1, NULL, NULL, in http_allowed_methods_test()
987 bufferevent_write(bev1, http_request, strlen(http_request)); in http_allowed_methods_test()
1027 bufferevent_free(bev1); in http_allowed_methods_test()