Home
last modified time | relevance | path

Searched refs:evbase (Results 1 – 5 of 5) sorted by relevance

/third_party/curl/docs/examples/
Dhiperfifo.c81 struct event_base *evbase; member
188 event_base_loopbreak(g->evbase); in check_multi_info()
260 event_assign(&f->ev, g->evbase, f->sockfd, kind, event_cb, g); in setsock()
381 event_base_loopbreak(g->evbase); in fifo_cb()
419 event_assign(&g->fifo_event, g->evbase, sockfd, EV_READ|EV_PERSIST, in init_fifo()
439 g.evbase = event_base_new(); in main()
442 evtimer_assign(&g.timer_event, g.evbase, timer_cb, &g); in main()
453 event_base_dispatch(g.evbase); in main()
459 event_base_free(g.evbase); in main()
/third_party/nghttp2/examples/
Dlibevent-server.c106 struct event_base *evbase; member
255 app_ctx->evbase, fd, ssl, BUFFEREVENT_SSL_ACCEPTING, in create_http2_session_data()
744 static void start_listen(struct event_base *evbase, const char *service, in start_listen() argument
765 evbase, acceptcb, app_ctx, LEV_OPT_CLOSE_ON_FREE | LEV_OPT_REUSEABLE, in start_listen()
777 struct event_base *evbase) { in initialize_app_context() argument
780 app_ctx->evbase = evbase; in initialize_app_context()
787 struct event_base *evbase; in run() local
790 evbase = event_base_new(); in run()
791 initialize_app_context(&app_ctx, ssl_ctx, evbase); in run()
792 start_listen(evbase, service, &app_ctx); in run()
[all …]
Dlibevent-client.c153 create_http2_session_data(struct event_base *evbase) { in create_http2_session_data() argument
157 session_data->dnsbase = evdns_base_new(evbase, 1); in create_http2_session_data()
546 static void initiate_connection(struct event_base *evbase, SSL_CTX *ssl_ctx, in initiate_connection() argument
555 evbase, -1, ssl, BUFFEREVENT_SSL_CONNECTING, in initiate_connection()
576 struct event_base *evbase; in run() local
593 evbase = event_base_new(); in run()
595 session_data = create_http2_session_data(evbase); in run()
598 initiate_connection(evbase, ssl_ctx, host, port, session_data); in run()
602 event_base_loop(evbase, 0); in run()
604 event_base_free(evbase); in run()
/third_party/nghttp2/doc/sources/
Dtutorial-server.rst112 struct event_base *evbase;
151 static void start_listen(struct event_base *evbase, const char *service,
172 evbase, acceptcb, app_ctx, LEV_OPT_CLOSE_ON_FREE | LEV_OPT_REUSEABLE,
Dtutorial-client.rst116 static void initiate_connection(struct event_base *evbase, SSL_CTX *ssl_ctx,
125 evbase, -1, ssl, BUFFEREVENT_SSL_CONNECTING,