Re: using curl for streaming rtsp/rtp over tcp

2021-06-20 Thread jeremy--- via curl-library
On Sun, 20 Jun 2021, at 15:14, Abhijeet Bhagat via curl-library wrote: > i am using libcurl to send rtsp commands (over tcp) to a server. I did a very similar exercise quite a few years ago (but am a bit rusty on the subject) > i was expecting CURLOPT_WRITEFUNCTION to get repeatedly called with

curl_easy_perform blocks when ifdown the ntwk interface

2018-11-09 Thread Matthews, Jeremy via curl-library
Hi, I have some C++ code which sends REST requests periodically. Here are some options that are set and then the curl_easy_perform call (a HEAD message is being sent): curl_easy_setopt(mhCurl, CURLOPT_HTTPHEADER, chunk); curl_easy_setopt(mhCurl, CURLOPT_URL, f_szUrl.c_str()); curl_e

RE: curl_easy_perform blocks when ifdown the ntwk interface

2018-11-13 Thread Matthews, Jeremy via curl-library
Thank you for your input. Well, curl_easy_perform did appear to block. When the interface was down, the function did not return, let alone return an error code. I have made this change: < curl_easy_setopt(mhCurl, CURLOPT_CONNECTTIMEOUT, f_lTimeoutSec); --- > curl_easy_setopt(mhCurl, CUR