Lines Matching refs:session
485 static int on_frame_recv(nghttp2_session *session, const nghttp2_frame *frame,
488 static int on_frame_send(nghttp2_session *session, const nghttp2_frame *frame,
491 static int on_data_chunk_recv(nghttp2_session *session, uint8_t flags,
494 static int on_stream_close(nghttp2_session *session, int32_t stream_id,
496 static int on_begin_headers(nghttp2_session *session,
498 static int on_header(nghttp2_session *session, const nghttp2_frame *frame,
504 static int error_callback(nghttp2_session *session, const char *msg,
1280 static int on_frame_send(nghttp2_session *session, const nghttp2_frame *frame, in on_frame_send() argument
1286 (void)session; in on_frame_send()
1299 static int on_frame_recv(nghttp2_session *session, const nghttp2_frame *frame, in on_frame_recv() argument
1326 session, NGHTTP2_SETTINGS_MAX_CONCURRENT_STREAMS); in on_frame_recv()
1328 session, NGHTTP2_SETTINGS_ENABLE_PUSH) != 0; in on_frame_recv()
1368 data_s = nghttp2_session_get_stream_user_data(session, stream_id); in on_frame_recv()
1377 static int on_data_chunk_recv(nghttp2_session *session, uint8_t flags, in on_data_chunk_recv() argument
1391 data_s = nghttp2_session_get_stream_user_data(session, stream_id); in on_data_chunk_recv()
1399 nghttp2_session_consume(session, stream_id, len); in on_data_chunk_recv()
1414 static int on_stream_close(nghttp2_session *session, int32_t stream_id, in on_stream_close() argument
1422 (void)session; in on_stream_close()
1427 nghttp2_session_get_stream_user_data(session, stream_id) : NULL; in on_stream_close()
1439 (void)nghttp2_session_set_stream_user_data(session, stream_id, 0); in on_stream_close()
1463 rv = nghttp2_session_set_stream_user_data(session, stream_id, 0); in on_stream_close()
1472 static int on_begin_headers(nghttp2_session *session, in on_begin_headers() argument
1481 data_s = nghttp2_session_get_stream_user_data(session, frame->hd.stream_id); in on_begin_headers()
1499 static int on_header(nghttp2_session *session, const nghttp2_frame *frame, in on_header() argument
1516 data_s = nghttp2_session_get_stream_user_data(session, stream_id); in on_header()
1549 (void)nghttp2_submit_rst_stream(session, NGHTTP2_FLAG_NONE, in on_header()
1662 static ssize_t req_body_read_callback(nghttp2_session *session, in req_body_read_callback() argument
1683 data_s = nghttp2_session_get_stream_user_data(session, stream_id); in req_body_read_callback()
1711 static int error_callback(nghttp2_session *session, in error_callback() argument
1718 (void)session; in error_callback()