• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/curl/curl-7.36.0/lib/

Lines Matching defs:conn

46 static int http2_perform_getsock(const struct connectdata *conn,
53 const struct http_conn *httpc = &conn->proto.httpc;
59 sock[0] = conn->sock[FIRSTSOCKET];
70 static int http2_getsock(struct connectdata *conn,
75 return http2_perform_getsock(conn, sock, numsocks);
78 static CURLcode http2_disconnect(struct connectdata *conn,
81 struct http_conn *httpc = &conn->proto.httpc;
84 infof(conn->data, "HTTP/2 DISCONNECT starts now\n");
93 infof(conn->data, "HTTP/2 DISCONNECT done\n");
162 struct connectdata *conn = (struct connectdata *)userp;
163 struct http_conn *httpc = &conn->proto.httpc;
170 written = ((Curl_send*)httpc->send_underlying)(conn, FIRSTSOCKET,
178 failf(conn->data, "Failed sending HTTP2 data");
191 struct connectdata *conn = (struct connectdata *)userp;
192 struct http_conn *c = &conn->proto.httpc;
196 infof(conn->data, "on_frame_recv() was called with header %x\n",
227 struct connectdata *conn = (struct connectdata *)userp;
230 infof(conn->data, "on_invalid_frame_recv() was called, error_code = %d\n",
239 struct connectdata *conn = (struct connectdata *)userp;
240 struct http_conn *c = &conn->proto.httpc;
245 infof(conn->data, "on_data_chunk_recv() "
258 infof(conn->data, "%zu data written\n", nread);
272 struct connectdata *conn = (struct connectdata *)userp;
273 struct http_conn *c = &conn->proto.httpc;
276 infof(conn->data, "before_frame_send() was called\n");
288 struct connectdata *conn = (struct connectdata *)userp;
291 infof(conn->data, "on_frame_send() was called\n");
298 struct connectdata *conn = (struct connectdata *)userp;
301 infof(conn->data, "on_frame_not_send() was called, lib_error_code = %d\n",
308 struct connectdata *conn = (struct connectdata *)userp;
309 struct http_conn *c = &conn->proto.httpc;
312 infof(conn->data, "on_stream_close() was called, error_code = %d\n",
329 struct connectdata *conn = (struct connectdata *)userp;
335 infof(conn->data, "on_unknown_frame_recv() was called\n");
341 struct connectdata *conn = (struct connectdata *)userp;
344 infof(conn->data, "on_begin_headers() was called\n");
356 struct connectdata *conn = (struct connectdata *)userp;
357 struct http_conn *c = &conn->proto.httpc;
373 infof(conn->data, "got header\n");
411 struct connectdata *conn = (struct connectdata *)userp;
412 struct http_conn *c = &conn->proto.httpc;
448 CURLcode Curl_http2_init(struct connectdata *conn)
450 if(!conn->proto.httpc.h2) {
452 conn->proto.httpc.inbuf = malloc(H2_BUFSIZE);
453 if(conn->proto.httpc.inbuf == NULL)
457 rc = nghttp2_session_client_new(&conn->proto.httpc.h2,
458 &callbacks, conn);
460 failf(conn->data, "Couldn't initialize nghttp2!");
470 CURLcode Curl_http2_send_request(struct connectdata *conn)
472 (void)conn;
480 struct connectdata *conn)
486 struct SingleRequest *k = &conn->data->req;
487 uint8_t *binsettings = conn->proto.httpc.binsettings;
489 Curl_http2_init(conn);
501 failf(conn->data, "nghttp2 unexpectedly failed on pack_settings_payload");
504 conn->proto.httpc.binlen = binlen;
506 result = Curl_base64_encode(conn->data, (const char *)binsettings, binlen,
527 static ssize_t http2_recv(struct connectdata *conn, int sockindex,
533 struct http_conn *httpc = &conn->proto.httpc;
564 infof(conn->data, "%zu data written\n", nread);
572 conn->proto.httpc.mem = mem;
573 conn->proto.httpc.len = len;
575 infof(conn->data, "http2_recv: %d bytes buffer\n",
576 conn->proto.httpc.len);
579 nread = ((Curl_recv*)httpc->recv_underlying)(conn, FIRSTSOCKET,
588 failf(conn->data, "Failed receiving HTTP2 data");
593 infof(conn->data, "nread=%zd\n", nread);
598 failf(conn->data, "nghttp2_session_mem_recv() returned %d:%s\n",
603 infof(conn->data, "nghttp2_session_mem_recv() returns %zd\n", rv);
612 return len - conn->proto.httpc.len;
630 static ssize_t http2_send(struct connectdata *conn, int sockindex,
639 struct http_conn *httpc = &conn->proto.httpc;
648 infof(conn->data, "http2_send len=%zu\n", len);
699 if(conn->handler->flags & PROTOPT_SSL)
737 infof(conn->data, "request content-length=%zu\n", httpc->upload_left);
741 switch(conn->data->set.httpreq) {
782 int Curl_http2_switched(struct connectdata *conn)
786 struct http_conn *httpc = &conn->proto.httpc;
790 if(conn->handler->flags & PROTOPT_SSL)
791 conn->handler = &Curl_handler_http2_ssl;
793 conn->handler = &Curl_handler_http2;
795 httpc->recv_underlying = (recving)conn->recv[FIRSTSOCKET];
796 httpc->send_underlying = (sending)conn->send[FIRSTSOCKET];
797 conn->recv[FIRSTSOCKET] = http2_recv;
798 conn->send[FIRSTSOCKET] = http2_send;
799 infof(conn->data, "We have switched to HTTP2\n");
810 conn->httpversion = 20;
817 (conn, FIRSTSOCKET,
822 if(conn->data->req.upgr101 == UPGR101_RECEIVED) {
829 failf(conn->data, "nghttp2_session_upgrade() failed: %s(%d)",
839 failf(conn->data, "nghttp2_submit_settings() failed: %s(%d)",