curl / Mailing Lists / curl-library / Single Mail

curl-library

Re: Create Serverside Streaming connection using libcurl

From: Dan Fandrich via curl-library <curl-library_at_cool.haxx.se>
Date: Sat, 30 Mar 2019 16:51:45 +0100

On Sat, Mar 30, 2019 at 02:29:34PM +0530, Prashant Shubham via curl-library wrote:
> On 3/30/19, Daniel Stenberg <daniel_at_haxx.se> wrote:
> > I would say the opposite and claim that libcurl supports streaming of
> > virtually all protocols. At least the TCP based ones. libcurl will sit and
> > wait for data until data arrives and then it delivers it. Over and over
> > until
> > the end of connection (which might neve occur).
>
> Hi Daniel,
> It would be great help if you could point to some examples.

Almost all the example programs do this. That's just how libcurl works. Take
a look at https://curl.haxx.se/libcurl/c/ftpget.html for example. One of the
variables in the write callback is even called "stream".
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2019-03-30