cURL / Mailing Lists / curl-library / Single Mail

curl-library

Help required to understand CURL for read data

From: Santhosh Kumar <santhosh.kumar.bachu_at_gmail.com>
Date: Wed, 31 Jul 2013 10:50:56 +0530

Hi All,

I am very new to curl. I am using ffmpeg custom IO Call backs for playing
AV Streams, in those IO Callbacks, I need to fetch data based on ffmpeg
request( Like size and memory will provide by ffmpeg).

From examples and Apis of curl, i couldnt see any CURL function or API does
this functionality(I might have over looked also).
So if any one knows, can you help me?

Assume: connection with server established already.

Sudo Code:
-...
- avio_alloc_context(ioBuf, ioBufSize, 0, opaque, ReadCallBack, NULL,
SeekCallBack);
- ....

- ....
ReadCallBack(opaque, buf, reqSize))
{
    /* Read Data of reqSize from http Server into buf*/
}

-.......

Any idea?

-- 
Santhosh

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-07-31