curl-library
Re: Using Named Pipe
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 15 Aug 2017 00:13:52 +0200 (CEST)
Date: Tue, 15 Aug 2017 00:13:52 +0200 (CEST)
On Mon, 14 Aug 2017, Stephen McRoberts wrote:
> I have a working program which records camera video then does an scp with
> libcurl. But this delays the scp until the recording is complete.
>
> What I'd like to do is use mkfifo to start recording and upload while
> recording with minimal delay. Is this possible using a custom read_callback?
> Any code fragments?
I believe that in the case of SCP, libcurl needs to know the size of the
upload before it starts (to tell libssh2 in the libssh2_scp_send64) function
call). I'm pretty sure it will then not send any more data than so, even if it
would be possible to read more from a pipe...
-- / daniel.haxx.se ------------------------------------------------------------------- Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library Etiquette: https://curl.haxx.se/mail/etiquette.htmlReceived on 2017-08-15