• Home
  • Raw
  • Download

Lines Matching refs:hd

64     URLContext *hd;  member
252 if (!s->hd) { in http_open_cnx_internal()
253 err = ffurl_open_whitelist(&s->hd, buf, AVIO_FLAG_READ_WRITE, in http_open_cnx_internal()
332 ffurl_closep(&s->hd); in http_open_cnx()
340 ffurl_closep(&s->hd); in http_open_cnx()
348 ffurl_closep(&s->hd); in http_open_cnx()
357 ffurl_closep(&s->hd); in http_open_cnx()
370 if (s->hd) in http_open_cnx()
371 ffurl_closep(&s->hd); in http_open_cnx()
384 read_ret = ffurl_read(s->hd, buf, sizeof(buf)); in ff_http_get_shutdown_status()
536 if ((ret = ffurl_write(s->hd, message, message_len)) < 0) in http_write_reply()
551 URLContext *cl = ch->hd; in http_handshake()
599 if ((ret = ffurl_open_whitelist(&s->hd, lower_url, AVIO_FLAG_READ_WRITE, in http_listen()
661 URLContext *sl = sc->hd; in http_accept()
670 cc->hd = cl; in http_accept()
684 len = ffurl_read(s->hd, s->buffer, BUFFER_SIZE); in http_getc()
1393 if ((err = ffurl_write(s->hd, request.str, request.len)) < 0) in http_connect()
1397 if ((err = ffurl_write(s->hd, s->post_data, s->post_datalen)) < 0) in http_connect()
1468 ffurl_closep(&s->hd); in http_buf_read()
1491 len = ffurl_read(s->hd, buf, size); in http_buf_read()
1553 if (!s->hd) in http_read_stream()
1706 return ffurl_write(s->hd, buf, size); in http_write()
1715 if ((ret = ffurl_write(s->hd, temp, strlen(temp))) < 0 || in http_write()
1716 (ret = ffurl_write(s->hd, buf, size)) < 0 || in http_write()
1717 (ret = ffurl_write(s->hd, crlf, sizeof(crlf) - 1)) < 0) in http_write()
1732 ret = ffurl_write(s->hd, footer, sizeof(footer) - 1); in http_shutdown()
1738 s->hd->flags |= AVIO_FLAG_NONBLOCK; in http_shutdown()
1739 read_ret = ffurl_read(s->hd, buf, sizeof(buf)); in http_shutdown()
1740 s->hd->flags &= ~AVIO_FLAG_NONBLOCK; in http_shutdown()
1762 if (s->hd && !s->end_chunked_post) in http_close()
1766 if (s->hd) in http_close()
1767 ffurl_closep(&s->hd); in http_close()
1775 URLContext *old_hd = s->hd; in http_seek_internal()
1813 s->hd = NULL; in http_seek_internal()
1821 s->hd = old_hd; in http_seek_internal()
1838 return ffurl_get_file_handle(s->hd); in http_get_file_handle()
1844 return ffurl_get_short_seek(s->hd); in http_get_short_seek()
1901 if (s->hd) in http_proxy_close()
1902 ffurl_closep(&s->hd); in http_proxy_close()
1932 ret = ffurl_open_whitelist(&s->hd, lower_url, AVIO_FLAG_READ_WRITE, in http_proxy_open()
1951 if ((ret = ffurl_write(s->hd, s->buffer, strlen(s->buffer))) < 0) in http_proxy_open()
1977 ffurl_closep(&s->hd); in http_proxy_open()
1993 return ffurl_write(s->hd, buf, size); in http_proxy_write()