Lines Matching refs:buf
71 const char *buf,
138 Curl_dyn_init(&conn->proto.rtspc.buf, MAX_RTP_BUFFERSIZE); in rtsp_setup_connection()
185 Curl_dyn_free(&conn->proto.rtspc.buf); in rtsp_disconnect()
608 const char *buf, in rtp_write_body_junk() argument
623 return Curl_client_write(data, CLIENTWRITE_BODY, (char *)buf, blen); in rtp_write_body_junk()
629 const char *buf, in rtsp_filter_rtp() argument
645 DEBUGASSERT(Curl_dyn_len(&rtspc->buf) == 0); in rtsp_filter_rtp()
646 while(blen && buf[0] != '$') { in rtsp_filter_rtp()
647 if(!in_body && buf[0] == 'R' && in rtsp_filter_rtp()
649 if(strncmp(buf, "RTSP/", (blen < 5) ? blen : 5) == 0) { in rtsp_filter_rtp()
662 ++buf; in rtsp_filter_rtp()
666 if(blen && buf[0] == '$') { in rtsp_filter_rtp()
671 (char *)(buf - skip_len), skip_len); in rtsp_filter_rtp()
676 if(Curl_dyn_addn(&rtspc->buf, buf, 1)) { in rtsp_filter_rtp()
681 ++buf; in rtsp_filter_rtp()
689 int idx = ((unsigned char)buf[0]) / 8; in rtsp_filter_rtp()
690 int off = ((unsigned char)buf[0]) % 8; in rtsp_filter_rtp()
691 DEBUGASSERT(Curl_dyn_len(&rtspc->buf) == 1); in rtsp_filter_rtp()
702 result = rtp_write_body_junk(data, Curl_dyn_ptr(&rtspc->buf), 1); in rtsp_filter_rtp()
710 Curl_dyn_free(&rtspc->buf); in rtsp_filter_rtp()
714 rtspc->rtp_channel = (unsigned char)buf[0]; in rtsp_filter_rtp()
715 if(Curl_dyn_addn(&rtspc->buf, buf, 1)) { in rtsp_filter_rtp()
720 ++buf; in rtsp_filter_rtp()
727 size_t rtp_len = Curl_dyn_len(&rtspc->buf); in rtsp_filter_rtp()
730 if(Curl_dyn_addn(&rtspc->buf, buf, 1)) { in rtsp_filter_rtp()
735 ++buf; in rtsp_filter_rtp()
739 rtp_buf = Curl_dyn_ptr(&rtspc->buf); in rtsp_filter_rtp()
746 size_t rtp_len = Curl_dyn_len(&rtspc->buf); in rtsp_filter_rtp()
751 if(Curl_dyn_addn(&rtspc->buf, buf, needed)) { in rtsp_filter_rtp()
756 buf += needed; in rtsp_filter_rtp()
761 result = rtp_client_write(data, Curl_dyn_ptr(&rtspc->buf), in rtsp_filter_rtp()
763 Curl_dyn_free(&rtspc->buf); in rtsp_filter_rtp()
769 if(Curl_dyn_addn(&rtspc->buf, buf, blen)) { in rtsp_filter_rtp()
774 buf += blen; in rtsp_filter_rtp()
787 result = rtp_write_body_junk(data, (char *)(buf - skip_len), skip_len); in rtsp_filter_rtp()
792 const char *buf, in rtsp_rtp_write_resp() argument
811 result = rtsp_filter_rtp(data, buf, blen, &consumed); in rtsp_rtp_write_resp()
814 buf += consumed; in rtsp_rtp_write_resp()
825 result = Curl_http_write_resp_hds(data, buf, blen, &consumed); in rtsp_rtp_write_resp()
829 buf += consumed; in rtsp_rtp_write_resp()
843 result = rtsp_filter_rtp(data, buf, blen, &consumed); in rtsp_rtp_write_resp()
862 (char *)buf, blen); in rtsp_rtp_write_resp()