Lines Matching refs:blen
72 size_t blen,
609 size_t blen) in rtp_write_body_junk() argument
621 if((curl_off_t)blen > body_remain) in rtp_write_body_junk()
622 blen = (size_t)body_remain; in rtp_write_body_junk()
623 return Curl_client_write(data, CLIENTWRITE_BODY, (char *)buf, blen); in rtp_write_body_junk()
630 size_t blen, in rtsp_filter_rtp() argument
638 while(blen) { in rtsp_filter_rtp()
646 while(blen && buf[0] != '$') { in rtsp_filter_rtp()
649 if(strncmp(buf, "RTSP/", (blen < 5) ? blen : 5) == 0) { in rtsp_filter_rtp()
663 --blen; in rtsp_filter_rtp()
666 if(blen && buf[0] == '$') { in rtsp_filter_rtp()
682 --blen; in rtsp_filter_rtp()
721 --blen; in rtsp_filter_rtp()
736 --blen; in rtsp_filter_rtp()
750 if(needed <= blen) { in rtsp_filter_rtp()
757 blen -= needed; in rtsp_filter_rtp()
769 if(Curl_dyn_addn(&rtspc->buf, buf, blen)) { in rtsp_filter_rtp()
773 *pconsumed += blen; in rtsp_filter_rtp()
774 buf += blen; in rtsp_filter_rtp()
775 blen = 0; in rtsp_filter_rtp()
793 size_t blen, in rtsp_rtp_write_resp() argument
802 if(!blen) { in rtsp_rtp_write_resp()
807 blen, rtspc->in_header, is_eos)); in rtsp_rtp_write_resp()
811 result = rtsp_filter_rtp(data, buf, blen, &consumed); in rtsp_rtp_write_resp()
815 blen -= consumed; in rtsp_rtp_write_resp()
817 if(blen && !data->req.header) in rtsp_rtp_write_resp()
819 blen)); in rtsp_rtp_write_resp()
823 if(data->req.header && blen) { in rtsp_rtp_write_resp()
825 result = Curl_http_write_resp_hds(data, buf, blen, &consumed); in rtsp_rtp_write_resp()
830 blen -= consumed; in rtsp_rtp_write_resp()
843 result = rtsp_filter_rtp(data, buf, blen, &consumed); in rtsp_rtp_write_resp()
846 blen -= consumed; in rtsp_rtp_write_resp()
857 blen, rtspc->in_header, data->req.done, rtspc->state, in rtsp_rtp_write_resp()
859 if(!result && (is_eos || blen)) { in rtsp_rtp_write_resp()
862 (char *)buf, blen); in rtsp_rtp_write_resp()